Skip to content

Commit

Permalink
fix: unnecessary conversion
Browse files Browse the repository at this point in the history
 Error: kafkareceiver/factory_test.go:33:23: unnecessary conversion (unconvert)
501
	assert.Equal(t, int32(defaultMaxFetchSize), int32(cfg.MaxFetchSize))
  • Loading branch information
cxdy authored Aug 27, 2024
1 parent 0f117ff commit 63ec620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions receiver/kafkareceiver/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 63ec620

Please sign in to comment.