mirror of https://github.com/milvus-io/milvus.git
parent
e1d8ef83d2
commit
d1dead500c
|
@ -36,9 +36,10 @@ func TestAllocator_Basic(t *testing.T) {
|
||||||
t.Run("Test Unhealthy Root", func(t *testing.T) {
|
t.Run("Test Unhealthy Root", func(t *testing.T) {
|
||||||
ms := newMockRootCoordService()
|
ms := newMockRootCoordService()
|
||||||
allocator := newRootCoordAllocator(ms)
|
allocator := newRootCoordAllocator(ms)
|
||||||
ms.Stop()
|
err := ms.Stop()
|
||||||
|
assert.Nil(t, err)
|
||||||
|
|
||||||
_, err := allocator.allocTimestamp(ctx)
|
_, err = allocator.allocTimestamp(ctx)
|
||||||
assert.Error(t, err)
|
assert.Error(t, err)
|
||||||
_, err = allocator.allocID(ctx)
|
_, err = allocator.allocID(ctx)
|
||||||
assert.Error(t, err)
|
assert.Error(t, err)
|
||||||
|
|
Loading…
Reference in New Issue