未验证 提交 d1dead50 编写于 作者: S sunby 提交者: GitHub

Check error in allocator test (#8621)

Signed-off-by: Nsunby <bingyi.sun@zilliz.com>
上级 e1d8ef83
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册