Skip to content

Commit 1810af3

Browse files
authored
Merge pull request #19542 from k8s-infra-cherrypick-robot/cherry-pick-19538-to-release-3.5
[release-3.5] deflakey: TestCompactionHash in integration
2 parents 815eaba + cda443c commit 1810af3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/integration/hashkv_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"net"
2020
"net/http"
2121
"testing"
22-
"time"
2322

2423
clientv3 "go.etcd.io/etcd/client/v3"
2524
"go.etcd.io/etcd/server/v3/etcdserver"
@@ -83,8 +82,6 @@ func (tc hashTestCase) Defrag(ctx context.Context) error {
8382
}
8483

8584
func (tc hashTestCase) Compact(ctx context.Context, rev int64) error {
86-
_, err := tc.Client.Compact(ctx, rev)
87-
// Wait for compaction to be compacted
88-
time.Sleep(50 * time.Millisecond)
85+
_, err := tc.Client.Compact(ctx, rev, clientv3.WithCompactPhysical())
8986
return err
9087
}

0 commit comments

Comments
 (0)