From 46ce58d61f5a5b3aa0786bb93226eb58913cd44d Mon Sep 17 00:00:00 2001 From: YUN SUN Date: Tue, 24 Sep 2024 12:37:27 +0200 Subject: [PATCH] [YUNIKORN-2450] Rename updateLowestId to updateLowestID, TestLoggerIds to TestLoggerIDs (#973) Closes: #973 Signed-off-by: Peter Bacsko --- pkg/events/event_ringbuffer.go | 4 ++-- pkg/log/logger_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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