Skip to content

Commit

Permalink
Fix flaky object mover test
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer [email protected]
  • Loading branch information
sbueringer committed Feb 3, 2022
1 parent fe7656c commit a7eed44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/clusterctl/client/cluster/mover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func Test_objectMover_backupTargetObject(t *testing.T) {
g.Expect(string(fileContents)).To(Equal(expectedFileContents))

// Add delay so we ensure the file ModTime of updated files is different from old ones in the original files
time.Sleep(time.Millisecond * 5)
time.Sleep(time.Millisecond * 50)

// Running backupTargetObject should override any existing files since it represents a new backup
err = mover.backupTargetObject(node, dir)
Expand Down

0 comments on commit a7eed44

Please sign in to comment.