Skip to content

Commit bd3e10a

Browse files
authored
adjust spectator-go testing advice
1 parent a063679 commit bd3e10a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/spectator/lang/go/usage.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,13 @@ which stores all updates in an `Array`. Maintain a handle to the `MemoryWriter`,
241241
import (
242242
"fmt"
243243
"github.com/Netflix/spectator-go/v2/spectator"
244-
"github.com/Netflix/spectator-go/v2/spectator/logger"
245244
"github.com/Netflix/spectator-go/v2/spectator/writer"
246245
"testing"
247246
"time"
248247
)
249248

250249
func TestRegistryWithMemoryWriter_Counter(t *testing.T) {
251-
config, _ := spectator.NewConfig("memory", nil, logger.NewDefaultLogger())
250+
config, _ := spectator.NewConfig("memory", nil, nil)
252251
registry, _ = spectator.NewRegistry(config)
253252
mw := registry.GetWriter().(*writer.MemoryWriter)
254253

0 commit comments

Comments
 (0)