diff --git a/functional_consumer_staticmembership_test.go b/functional_consumer_staticmembership_test.go index 8f2f4e3cb..946169b10 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]) }