]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/server_test.go
Replace zap logger with slog
[rbdr/mobius] / hotline / server_test.go
index 0eb76f0768e27c67c236c2460f2b7da8c24d23a2..3a368e0315786ebf0969c5b02fa5c974f38601e1 100644 (file)
@@ -5,8 +5,8 @@ import (
        "context"
        "fmt"
        "github.com/stretchr/testify/assert"
-       "go.uber.org/zap"
        "io"
+       "log/slog"
        "os"
        "sync"
        "testing"
@@ -35,14 +35,12 @@ func TestServer_handleFileTransfer(t *testing.T) {
                fileTransfers map[[4]byte]*FileTransfer
                Config        *Config
                ConfigDir     string
-               Logger        *zap.SugaredLogger
+               Logger        *slog.Logger
                PrivateChats  map[uint32]*PrivateChat
                NextGuestID   *uint16
                TrackerPassID [4]byte
                Stats         *Stats
                FS            FileStore
-               mux           sync.Mutex
-               flatNewsMux   sync.Mutex
                FlatNews      []byte
        }
        type args struct {