mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fix flaky migration test due to time. (#25871)
This commit is contained in:
parent
c6a7868ce5
commit
298ad67fb1
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue