diff --git a/pkg/events/event_ringbuffer.go b/pkg/events/event_ringbuffer.go index 72a824d17..7fbf1fd58 100644 --- a/pkg/events/event_ringbuffer.go +++ b/pkg/events/event_ringbuffer.go @@ -203,7 +203,7 @@ func newEventRingBuffer(capacity uint64) *eventRingBuffer { } // called from Resize(), this function updates the lowest event id available in the buffer -func (e *eventRingBuffer) updateLowestId(beginSize, endSize uint64) { +func (e *eventRingBuffer) updateLowestID(beginSize, endSize uint64) { // if buffer size is increasing, lowestId stays the same if beginSize < endSize { return @@ -238,7 +238,7 @@ func (e *eventRingBuffer) Resize(newSize uint64) { endIndex := (startIndex + numEventsToCopy - 1) % e.capacity prevLowestId := e.getLowestID() - e.updateLowestId(initialSize, newSize) + e.updateLowestID(initialSize, newSize) newLowestId := e.getLowestID() if prevLowestId != newLowestId { diff --git a/pkg/log/logger_test.go b/pkg/log/logger_test.go index 48160d057..0a12a58b3 100644 --- a/pkg/log/logger_test.go +++ b/pkg/log/logger_test.go @@ -35,7 +35,7 @@ var logFile string var iterations = 100000 -func TestLoggerIds(t *testing.T) { +func TestLoggerIDs(t *testing.T) { _ = Log(Test) // validate logger count