From 5703bb824c2f36a413499128840269dcca126e8d Mon Sep 17 00:00:00 2001 From: Pau Peinado Date: Fri, 13 Sep 2024 14:20:40 +0200 Subject: [PATCH] update test assert --- pkg/writers/adapters/elasticsearch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/writers/adapters/elasticsearch_test.go b/pkg/writers/adapters/elasticsearch_test.go index 5b32e42..73d214c 100644 --- a/pkg/writers/adapters/elasticsearch_test.go +++ b/pkg/writers/adapters/elasticsearch_test.go @@ -57,7 +57,7 @@ func TestAdapterReceiveInvalidMessage(t *testing.T) { bulk.AssertNotCalled(t, "func1") assert.Len(t, acks, 1) - assert.False(t, acks[0].Body[0] != 0) + assert.True(t, acks[0].Body[0] == 0) } func TestBulkActionWithErrorsMustDiscardAllMessages(t *testing.T) {