Skip to content

Commit

Permalink
Add slog package import and update NewEmptyRegistry() call
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardinius committed Feb 11, 2024
1 parent 1bfef3e commit ae64c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/upstream/upstream_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package upstream

import (
"log/slog"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -73,7 +74,7 @@ func (m *MockRandom) Int() int {
}

func newRegistry(randomValues ...int) *RegistryMap {
r := NewEmptyRegistry()
r := NewEmptyRegistry(slog.Default())
r.rnd = &MockRandom{Values: randomValues}
return r
}

0 comments on commit ae64c83

Please sign in to comment.