Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/state/sqlite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"reflect"
"strings"
"sync"
"sync/atomic"
"testing"
"time"

Expand Down Expand Up @@ -74,12 +75,11 @@ func recordTestOffer(
return receipt.Key
}

var slotCounter uint32
var slotCounter atomic.Uint32

func nextCapacitySlotID(t *testing.T) uint32 {
t.Helper()
slotCounter++
return slotCounter
return slotCounter.Add(1)
}

// checkpointStep is one entry of the happy-path walk used by advanceTo.
Expand Down