mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Reduce go unittest time cost (#8556)
Signed-off-by: yhmo <yihua.mo@zilliz.com>
This commit is contained in:
parent
14e6b39d54
commit
a20a9c71e2
@ -151,7 +151,7 @@ func TestWatchQueryChannel_ClearEtcdInfoAfterAssignedNodeDown(t *testing.T) {
|
||||
}
|
||||
queryCoord.scheduler.Enqueue([]task{testTask})
|
||||
|
||||
time.Sleep(time.Second)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
queryCoord.cluster.stopNode(nodeID)
|
||||
for {
|
||||
newActiveTaskIDKeys, _, err := queryCoord.scheduler.client.LoadWithPrefix(activeTaskPrefix)
|
||||
|
@ -160,7 +160,7 @@ func TestSearch_Search(t *testing.T) {
|
||||
err = sendSearchRequest(node.queryNodeLoopCtx, DIM)
|
||||
assert.NoError(t, err)
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
|
||||
err = node.Stop()
|
||||
assert.NoError(t, err)
|
||||
@ -206,7 +206,7 @@ func TestSearch_SearchMultiSegments(t *testing.T) {
|
||||
err = sendSearchRequest(node.queryNodeLoopCtx, DIM)
|
||||
assert.NoError(t, err)
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
|
||||
err = node.Stop()
|
||||
assert.NoError(t, err)
|
||||
|
@ -88,7 +88,7 @@ func TestProxyManager(t *testing.T) {
|
||||
|
||||
_, err = cli.Delete(ctx, k1)
|
||||
assert.Nil(t, err)
|
||||
time.Sleep(time.Second)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
pm.Stop()
|
||||
time.Sleep(time.Second)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user