mirror of https://github.com/milvus-io/milvus.git
parent
14e6b39d54
commit
a20a9c71e2
|
@ -151,7 +151,7 @@ func TestWatchQueryChannel_ClearEtcdInfoAfterAssignedNodeDown(t *testing.T) {
|
||||||
}
|
}
|
||||||
queryCoord.scheduler.Enqueue([]task{testTask})
|
queryCoord.scheduler.Enqueue([]task{testTask})
|
||||||
|
|
||||||
time.Sleep(time.Second)
|
time.Sleep(100 * time.Millisecond)
|
||||||
queryCoord.cluster.stopNode(nodeID)
|
queryCoord.cluster.stopNode(nodeID)
|
||||||
for {
|
for {
|
||||||
newActiveTaskIDKeys, _, err := queryCoord.scheduler.client.LoadWithPrefix(activeTaskPrefix)
|
newActiveTaskIDKeys, _, err := queryCoord.scheduler.client.LoadWithPrefix(activeTaskPrefix)
|
||||||
|
|
|
@ -160,7 +160,7 @@ func TestSearch_Search(t *testing.T) {
|
||||||
err = sendSearchRequest(node.queryNodeLoopCtx, DIM)
|
err = sendSearchRequest(node.queryNodeLoopCtx, DIM)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(100 * time.Millisecond)
|
||||||
|
|
||||||
err = node.Stop()
|
err = node.Stop()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
@ -206,7 +206,7 @@ func TestSearch_SearchMultiSegments(t *testing.T) {
|
||||||
err = sendSearchRequest(node.queryNodeLoopCtx, DIM)
|
err = sendSearchRequest(node.queryNodeLoopCtx, DIM)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(100 * time.Millisecond)
|
||||||
|
|
||||||
err = node.Stop()
|
err = node.Stop()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
|
@ -88,7 +88,7 @@ func TestProxyManager(t *testing.T) {
|
||||||
|
|
||||||
_, err = cli.Delete(ctx, k1)
|
_, err = cli.Delete(ctx, k1)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
time.Sleep(time.Second)
|
time.Sleep(100 * time.Millisecond)
|
||||||
pm.Stop()
|
pm.Stop()
|
||||||
time.Sleep(time.Second)
|
time.Sleep(100 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue