Skip to content

Commit a62edfe

Browse files
committed
test: Remove debug log from datastar test
1 parent 20d0baf commit a62edfe

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

internal/test/scripttests/datastar_suite.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package scripttests
22

33
import (
44
"context"
5-
"log/slog"
65
"testing"
76
"time"
87

@@ -60,10 +59,9 @@ func RunDataStarTests(t *testing.T, e html.ScriptEngine) {
6059
// Error level logs are piped to t.Error() though (this is
6160
// configurable). This will cause tests to fail if a JavaScript
6261
// error is thrown, even if the assertions in Go code succeed.
63-
gosttest.NewTestingLogger(t,
64-
// You don't need this. Logs all JS->Go calls
65-
gosttest.MinLogLevel(slog.LevelDebug),
66-
),
62+
gosttest.NewTestingLogger(t), // You don't need this. Logs all JS->Go calls
63+
// gosttest.MinLogLevel(slog.LevelDebug),
64+
6765
),
6866
))
6967
// The host name is ignored, but the server serves a Datastar test page on
@@ -95,9 +93,8 @@ func RunDataStarTests(t *testing.T, e html.ScriptEngine) {
9593
browser.WithContext(ctx),
9694
browser.WithHandler(app.CreateServer()),
9795
browser.WithLogger(
98-
gosttest.NewTestingLogger(t,
99-
gosttest.MinLogLevel(slog.LevelDebug),
100-
),
96+
gosttest.NewTestingLogger(t), // gosttest.MinLogLevel(slog.LevelDebug),
97+
10198
),
10299
))
103100
win := b.OpenWindow("https://example.com/ds/")

0 commit comments

Comments
 (0)