Skip to content

Commit

Permalink
fix time compare in test
Browse files Browse the repository at this point in the history
Signed-off-by: kaibocai <kaibocai@microsoft.com>

update test time compare

Signed-off-by: kaibocai <kaibocai@microsoft.com>
  • Loading branch information
kaibocai committed Dec 18, 2023
1 parent 12e9e2b commit 0280640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runtime/wfengine/wfengine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func TestSingleActivityWorkflow_ReuseInstanceIDTerminate(t *testing.T) {
// the first orchestration should complete as the second one is ignored
assert.Equal(t, `"Hello, World!"`, metadata.SerializedOutput)
// assert the orchestration created timestamp
assert.True(t, pivotTime.Before(metadata.CreatedAt))
assert.True(t, !pivotTime.After(metadata.CreatedAt))

Check failure on line 252 in pkg/runtime/wfengine/wfengine_test.go

View workflow job for this annotation

GitHub Actions / lint & proto validation (linux, amd64)

bool-compare: use assert.False (testifylint)
})
}
}
Expand Down

0 comments on commit 0280640

Please sign in to comment.