Skip to content

Commit f0a1ec5

Browse files
authored
Merge pull request #19538 from fuweid/deflaky-TestCompactionHash-in-integration
deflakey: TestCompactionHash in integration
2 parents 316991e + b58e9f5 commit f0a1ec5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/integration/hashkv_test.go

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

2423
"github.com/stretchr/testify/require"
2524

@@ -78,8 +77,6 @@ func (tc hashTestCase) Defrag(ctx context.Context) error {
7877
}
7978

8079
func (tc hashTestCase) Compact(ctx context.Context, rev int64) error {
81-
_, err := tc.Client.Compact(ctx, rev)
82-
// Wait for compaction to be compacted
83-
time.Sleep(50 * time.Millisecond)
80+
_, err := tc.Client.Compact(ctx, rev, clientv3.WithCompactPhysical())
8481
return err
8582
}

0 commit comments

Comments
 (0)