@@ -21,7 +21,7 @@ func Test_InstanceExecutionDetails_HistoryLength(t *testing.T) {
2121 tester .Execute (context .Background ())
2222
2323 require .True (t , tester .WorkflowFinished ())
24- require .Greater (t , capturedLength , int64 ( 0 ) , "History length should be greater than 0" )
24+ require .Positive (t , capturedLength , "History length should be greater than 0" )
2525}
2626
2727func Test_InstanceExecutionDetails_HistoryLength_WithActivity (t * testing.T ) {
@@ -48,7 +48,7 @@ func Test_InstanceExecutionDetails_HistoryLength_WithActivity(t *testing.T) {
4848 tester .Execute (context .Background ())
4949
5050 require .True (t , tester .WorkflowFinished ())
51- require .Greater (t , lengthBeforeActivity , int64 ( 0 ) )
51+ require .Positive (t , lengthBeforeActivity )
5252 require .Greater (t , lengthAfterActivity , lengthBeforeActivity , "History length should increase after activity execution" )
5353
5454 r , err := tester .WorkflowResult ()
@@ -89,7 +89,7 @@ func Test_InstanceExecutionDetails_HistoryLength_MultipleSteps(t *testing.T) {
8989
9090 // Get the last 3 values (from the final execution)
9191 finalLengths := lengths [len (lengths )- 3 :]
92- require .Greater (t , finalLengths [0 ], int64 ( 0 ) )
92+ require .Positive (t , finalLengths [0 ])
9393 require .Greater (t , finalLengths [1 ], finalLengths [0 ], "History should grow after first activity" )
9494 require .Greater (t , finalLengths [2 ], finalLengths [1 ], "History should grow after second activity" )
9595}
0 commit comments