Fix flaky migration test due to time. (#25871)

This commit is contained in:
Victor Lyuboslavsky 2025-01-29 14:41:39 -06:00 committed by GitHub
parent c6a7868ce5
commit 298ad67fb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)