Skip to content

Commit 43c84f1

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent 89ab23c commit 43c84f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/handler_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,17 +1954,17 @@ func TestLoggerFieldsSetup(t *testing.T) {
19541954
// Verify that the logger has the expected fields
19551955
require.Contains(t, logger.Data, sql.ConnectTimeLogKey, "Logger should contain connect time")
19561956
require.Contains(t, logger.Data, sql.ConnectionIdLogField, "Logger should contain connection ID")
1957-
1957+
19581958
// Verify that queryTime is actually used in logs by capturing a log entry
19591959
var capturedFields logrus.Fields
19601960
hook := &testHook{fields: &capturedFields}
19611961
logrus.AddHook(hook)
19621962
defer logrus.StandardLogger().ReplaceHooks(make(logrus.LevelHooks))
1963-
1963+
19641964
// Execute a query that will trigger error logging (which includes queryTime)
19651965
err = handler.ComQuery(context.Background(), conn, "SELECT * FROM nonexistent_table", dummyCb)
19661966
require.Error(t, err) // This should cause an error log with queryTime
1967-
1967+
19681968
// Verify that the log entry contained queryTime
19691969
require.Contains(t, capturedFields, sql.QueryTimeLogKey, "Log entry should contain queryTime field")
19701970

0 commit comments

Comments
 (0)