Skip to content

Commit 5db9eff

Browse files
committed
Apply feedback
1 parent f8a33e3 commit 5db9eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/apiserver/apply/apply_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ func TestNoOpApplyWithEmptyMap(t *testing.T) {
299299
t.Fatalf("Failed to create object: %v", err)
300300
}
301301

302-
// Sleep for one second to make sure that the times of each update operation is different.
302+
// This sleep is necessary to consistently produce different timestamps because the time field in managedFields has
303+
// 1 second granularity and if both apply requests happen during the same second, this test would flake.
303304
time.Sleep(1 * time.Second)
304305

305306
createdObject, err := client.AppsV1().RESTClient().Get().Namespace("default").Resource(deploymentsResource).Name(deploymentName).Do(context.TODO()).Get()

0 commit comments

Comments
 (0)