-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix TestBuiltinEventTimeExtractor #885
Conversation
Signed-off-by: Yashash H L <[email protected]>
@@ -272,14 +278,15 @@ wmLoop: | |||
if err != nil { | |||
assert.Fail(s.T(), err.Error()) | |||
} | |||
println(edgeWM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println(edgeWM) |
test/e2e-suite-1/functional_test.go
Outdated
// Watermark propagation can delay, we consider the test as passed as long as the retrieved watermark matches one of the assigned event times. | ||
assert.True(s.T(), edgeWM == time.Date(2021, 5, 18, 21, 54, 42, 123000000, time.UTC).UnixMilli() || edgeWM == time.Date(2021, 4, 18, 21, 54, 42, 123000000, time.UTC).UnixMilli() || edgeWM == time.Date(2021, 3, 18, 21, 54, 42, 123000000, time.UTC).UnixMilli() || edgeWM == time.Date(2021, 2, 18, 21, 54, 42, 123000000, time.UTC).UnixMilli() || edgeWM == time.Date(2021, 1, 18, 21, 54, 42, 123000000, time.UTC).UnixMilli()) | ||
assert.True(s.T(), edgeWM >= time.Date(2021, 1, 18, 21, 54, 42, 123000000, time.UTC).UnixMilli()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: would be better if we also have a <=
check to ensure that the edgeWM was extracted from msg payload. Without <=
check, it could be any timestamp including now.
Signed-off-by: Yashash H L <[email protected]>
No description provided.