We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a33e3 commit 5db9effCopy full SHA for 5db9eff
test/integration/apiserver/apply/apply_test.go
@@ -299,7 +299,8 @@ func TestNoOpApplyWithEmptyMap(t *testing.T) {
299
t.Fatalf("Failed to create object: %v", err)
300
}
301
302
- // Sleep for one second to make sure that the times of each update operation is different.
+ // 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.
304
time.Sleep(1 * time.Second)
305
306
createdObject, err := client.AppsV1().RESTClient().Get().Namespace("default").Resource(deploymentsResource).Name(deploymentName).Do(context.TODO()).Get()
0 commit comments