@@ -144,6 +144,7 @@ def execute
144144 Temporalio ::Workflow . info . to_h . tap do |h |
145145 h [ 'parent' ] = Temporalio ::Workflow . info . parent . to_h if Temporalio ::Workflow . info . parent
146146 h [ 'root' ] = Temporalio ::Workflow . info . root . to_h if Temporalio ::Workflow . info . root
147+ h [ 'start_time' ] = Temporalio ::Workflow . info . start_time . to_s
147148 end
148149 end
149150 end
@@ -158,6 +159,7 @@ def test_info
158159 # Normal info
159160 execute_workflow ( InfoWorkflow ) do |handle , worker |
160161 info = handle . result #: Hash[String, untyped]
162+ desc = handle . describe
161163 assert_equal 1 , info [ 'attempt' ]
162164 assert_nil info . fetch ( 'continued_run_id' )
163165 assert_nil info . fetch ( 'cron_schedule' )
@@ -170,7 +172,7 @@ def test_info
170172 assert_nil info . fetch ( 'root' )
171173 assert_equal handle . result_run_id , info [ 'run_id' ]
172174 assert_nil info . fetch ( 'run_timeout' )
173- refute_nil info [ 'start_time' ]
175+ assert_equal desc . start_time . to_s , info [ 'start_time' ]
174176 assert_equal worker . task_queue , info [ 'task_queue' ]
175177 assert_equal 10.0 , info [ 'task_timeout' ]
176178 assert_equal handle . id , info [ 'workflow_id' ]
0 commit comments