Skip to content

Commit

Permalink
Fix flaky migration test due to time. (#25871)
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor authored Jan 29, 2025
1 parent c6a7868 commit 298ad67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestUp_20250121094045(t *testing.T) {
hostID, fmt.Sprintf("encrypted-%d", hostID), "salt", 1,
)
}
timeBeforeMigration := time.Now()
timeBeforeMigration := time.Now().Add(-1 * time.Second) // allow for the server and DB time to be off by 1 second

// Apply current migration.
applyNext(t, db)
Expand Down

0 comments on commit 298ad67

Please sign in to comment.