Reduce go unittest time cost (#8502)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
pull/8569/head
groot 2021-09-26 12:48:32 +08:00 committed by GitHub
parent 66ba167b0b
commit a6a64692f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -389,7 +389,7 @@ func TestProxy(t *testing.T) {
}()
}
time.Sleep(time.Second)
time.Sleep(10 * time.Millisecond)
proxy, err := NewProxy(ctx, factory)
assert.NoError(t, err)
@ -926,7 +926,7 @@ func TestProxy(t *testing.T) {
break
}
// avoid too frequent rpc call
time.Sleep(time.Second)
time.Sleep(100 * time.Millisecond)
counter++
}
})
@ -1026,7 +1026,7 @@ func TestProxy(t *testing.T) {
break
}
// avoid too frequent rpc call
time.Sleep(time.Second)
time.Sleep(100 * time.Millisecond)
counter++
}
})