]> git.giacomolli.uk - onechat/blobdiff - whatsapp_fake_helper_test.go
Keep scenario tests with their implementation
[onechat] / whatsapp_fake_helper_test.go
index 8e0f237b5a878b3e6826cc621910cf645ad58adb..e5dc50270fd601981b7fb1d645282be011cec489 100644 (file)
@@ -3,7 +3,6 @@ package main
 import (
        "context"
        "fmt"
-       "log/slog"
        "os"
        "path/filepath"
        "slices"
@@ -414,11 +413,6 @@ func whatsappTestSession(t *testing.T, dir string, linked bool) {
        require.NoError(t, container.Close())
 }
 
-// whatsappDiscardLog is a logger for a WhatsApp whose log a test does not read.
-func whatsappDiscardLog() *slog.Logger {
-       return slog.New(slog.DiscardHandler)
-}
-
 // whatsappTestMessage returns the event of the text message id of sender in
 // chat at the time at. A sender with whatsappTestNumber is the user.
 func whatsappTestMessage(chat, sender types.JID, id, text string, at time.Time) *events.Message {