mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Check error in allocator test (#8621)
Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
parent
e1d8ef83d2
commit
d1dead500c
@ -36,9 +36,10 @@ func TestAllocator_Basic(t *testing.T) {
|
||||
t.Run("Test Unhealthy Root", func(t *testing.T) {
|
||||
ms := newMockRootCoordService()
|
||||
allocator := newRootCoordAllocator(ms)
|
||||
ms.Stop()
|
||||
err := ms.Stop()
|
||||
assert.Nil(t, err)
|
||||
|
||||
_, err := allocator.allocTimestamp(ctx)
|
||||
_, err = allocator.allocTimestamp(ctx)
|
||||
assert.Error(t, err)
|
||||
_, err = allocator.allocID(ctx)
|
||||
assert.Error(t, err)
|
||||
|
Loading…
Reference in New Issue
Block a user