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>
  • Loading branch information
kaibocai committed Dec 18, 2023
1 parent 12e9e2b commit 914f7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/runtime/wfengine/wfengine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func TestSingleActivityWorkflow_ReuseInstanceIDIgnore(t *testing.T) {
// the first orchestration should complete as the second one is ignored
assert.Equal(t, `"Hello, 世界!"`, metadata.SerializedOutput)
// assert the orchestration created timestamp
assert.True(t, pivotTime.After(metadata.CreatedAt))
assert.False(t, pivotTime.Before(metadata.CreatedAt))
})
}
}
Expand Down 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.False(t, pivotTime.After(metadata.CreatedAt))
})
}
}
Expand Down

0 comments on commit 914f7ee

Please sign in to comment.