From 63ec6206d2b6beb883ef53f71cd7bc1771261a77 Mon Sep 17 00:00:00 2001 From: Cody Kaczynski Date: Tue, 27 Aug 2024 08:23:50 -0400 Subject: [PATCH] fix: unnecessary conversion Error: kafkareceiver/factory_test.go:33:23: unnecessary conversion (unconvert) 501 assert.Equal(t, int32(defaultMaxFetchSize), int32(cfg.MaxFetchSize)) --- receiver/kafkareceiver/factory_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/kafkareceiver/factory_test.go b/receiver/kafkareceiver/factory_test.go index d58b53d31e66..7a08c8ff25b2 100644 --- a/receiver/kafkareceiver/factory_test.go +++ b/receiver/kafkareceiver/factory_test.go @@ -28,9 +28,9 @@ func TestCreateDefaultConfig(t *testing.T) { assert.Equal(t, defaultInitialOffset, cfg.InitialOffset) assert.Equal(t, defaultSessionTimeout, cfg.SessionTimeout) assert.Equal(t, defaultHeartbeatInterval, cfg.HeartbeatInterval) - assert.Equal(t, int32(defaultMinFetchSize), int32(cfg.MinFetchSize)) - assert.Equal(t, int32(defaultDefaultFetchSize), int32(cfg.DefaultFetchSize)) - assert.Equal(t, int32(defaultMaxFetchSize), int32(cfg.MaxFetchSize)) + assert.Equal(t, int32(defaultMinFetchSize), cfg.MinFetchSize) + assert.Equal(t, int32(defaultDefaultFetchSize), cfg.DefaultFetchSize) + assert.Equal(t, int32(defaultMaxFetchSize), cfg.MaxFetchSize) } func TestCreateTracesReceiver(t *testing.T) {