Skip to content

Commit

Permalink
[YUNIKORN-2450] Rename updateLowestId to updateLowestID, TestLoggerId…
Browse files Browse the repository at this point in the history
…s to TestLoggerIDs (#973)

Closes: #973

Signed-off-by: Peter Bacsko <bacskop@gmail.com>
  • Loading branch information
SophieTech88 authored and pbacsko committed Sep 24, 2024
1 parent 7337944 commit 46ce58d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/events/event_ringbuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/log/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46ce58d

Please sign in to comment.