Fix flaky e2e timestamp tests
Increase sleep time from 10ms to 1100ms to ensure timestamp precision works consistently across databases with second-level granularity. Strengthen AssertTimestampsOnUpdate to require strictly increasing timestamps instead of allowing equal values. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -556,7 +556,8 @@ func TestProcessingActivity_Timestamps(t *testing.T) {
|
||||
initialCreatedAt := getResult.Node.CreatedAt
|
||||
initialUpdatedAt := getResult.Node.UpdatedAt
|
||||
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
// Wait long enough for timestamp to change (database may have second precision)
|
||||
time.Sleep(1100 * time.Millisecond)
|
||||
|
||||
updateQuery := `
|
||||
mutation UpdateProcessingActivity($input: UpdateProcessingActivityInput!) {
|
||||
|
||||
Reference in New Issue
Block a user