Skip to content

Commit 76222e7

Browse files
famartingJoshVanL
andauthored
Update tests/worker_test.go
Co-authored-by: Josh van Leeuwen <[email protected]> Signed-off-by: Fabian Martinez <[email protected]>
1 parent 116d16c commit 76222e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/worker_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ func Test_TryProcessSingleOrchestrationWorkItem_Idempotency(t *testing.T) {
142142

143143
t.Logf("state.NewEvents: %v", wi.State.NewEvents)
144144
require.Len(t, wi.State.NewEvents, 3)
145-
require.True(t, wi.State.NewEvents[0].GetOrchestratorStarted() != nil)
146-
require.True(t, wi.State.NewEvents[1].GetExecutionStarted() != nil)
147-
require.True(t, wi.State.NewEvents[2].GetOrchestratorStarted() != nil)
145+
require.NotNil(t, wi.State.NewEvents[0].GetOrchestratorStarted())
146+
require.NotNil(t, wi.State.NewEvents[1].GetExecutionStarted())
147+
require.NotNil(t, wi.State.NewEvents[2].GetOrchestratorStarted())
148148
}
149149

150150
func Test_TryProcessSingleOrchestrationWorkItem_ExecutionStartedAndCompleted(t *testing.T) {

0 commit comments

Comments
 (0)