From 47309024ce57a99531f709a5a2fa42b72fd3b891 Mon Sep 17 00:00:00 2001 From: xiaofan Date: Tue, 17 May 2022 23:57:20 +0800 Subject: [PATCH] fix check in functional test --- functional_consumer_staticmembership_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functional_consumer_staticmembership_test.go b/functional_consumer_staticmembership_test.go index 8f2f4e3cb9..946169b109 100644 --- a/functional_consumer_staticmembership_test.go +++ b/functional_consumer_staticmembership_test.go @@ -211,7 +211,7 @@ func TestFuncConsumerGroupStaticMembership_Fenced(t *testing.T) { if len(m2.errs) < 1 { t.Errorf("expect m2 to be fenced by group instanced id, but got no err") } - if errors.Is(m2.errs[0], ErrFencedInstancedId) { + if !errors.Is(m2.errs[0], ErrFencedInstancedId) { t.Errorf("expect m2 to be fenced by group instanced id, but got wrong err %v", m2.errs[0]) }