Skip to content

Commit

Permalink
Merge pull request #1462 from umagnus/unittest
Browse files Browse the repository at this point in the history
test: reduce the time cost of ut
  • Loading branch information
k8s-ci-robot committed Aug 11, 2022
2 parents 3023037 + 9063e38 commit 7b3b87c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/csi-common/server_test.go
Expand Up @@ -33,9 +33,9 @@ func TestNewNonBlockingGRPCServer(t *testing.T) {
func TestStart(t *testing.T) {
s := NewNonBlockingGRPCServer()
// sleep a while to avoid race condition in unit test
time.Sleep(time.Millisecond * 2000)
time.Sleep(time.Millisecond * 500)
s.Start("tcp://127.0.0.1:0", nil, nil, nil, true)
time.Sleep(time.Millisecond * 2000)
time.Sleep(time.Millisecond * 500)
}

func TestServe(t *testing.T) {
Expand Down

0 comments on commit 7b3b87c

Please sign in to comment.