X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3460b2f2e8088e861d1852e4f26784b3c96ded8..c5d42c41795106305f6b965be77d94a935f5b0d3:/apps/workbench/test/controllers/pipeline_instances_controller_test.rb diff --git a/apps/workbench/test/controllers/pipeline_instances_controller_test.rb b/apps/workbench/test/controllers/pipeline_instances_controller_test.rb index ac36f197f4..6887cac892 100644 --- a/apps/workbench/test/controllers/pipeline_instances_controller_test.rb +++ b/apps/workbench/test/controllers/pipeline_instances_controller_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class PipelineInstancesControllerTest < ActionController::TestCase @@ -85,8 +89,12 @@ class PipelineInstancesControllerTest < ActionController::TestCase assert_response :success assert_not_nil assigns(:object) assert_not_nil assigns(:object).components[:foo][:job] - assert assigns(:object).components[:foo][:job][:started_at].is_a? Time - assert assigns(:object).components[:foo][:job][:finished_at].is_a? Time + start_at = assigns(:object).components[:foo][:job][:started_at] + start_at = Time.parse(start_at) if (start_at.andand.class == String) + assert start_at.is_a? Time + finished_at = assigns(:object).components[:foo][:job][:started_at] + finished_at = Time.parse(finished_at) if (finished_at.andand.class == String) + assert finished_at.is_a? Time end # The next two tests ensure that a pipeline instance can be copied