Skip to content

Commit

Permalink
Bump go 1.19: increase the TestKVDelete's timeout to 15s
Browse files Browse the repository at this point in the history
After upgrading to go 1.19, the test case needs more time
to execute, it might be related to the Runtime change in go 1.18.
Some applications may now use less memory and spend more time on
garbage collection, or vice versa, than before.

Refer to https://tip.golang.org/doc/go1.18#runtime

Signed-off-by: Benjamin Wang <wachao@vmware.com>
  • Loading branch information
ahrtr committed Sep 16, 2022
1 parent 7b0e608 commit 9192a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func TestKVDelete(t *testing.T) {
testRunner.BeforeTest(t)
for _, tc := range clusterTestCases {
t.Run(tc.name, func(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
defer cancel()
clus := testRunner.NewCluster(ctx, t, tc.config)
defer clus.Close()
Expand Down

0 comments on commit 9192a96

Please sign in to comment.