From 446f51a183474fb46684defc5440d7c1184802cc Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Wed, 2 Oct 2024 13:49:08 -0700 Subject: [PATCH] test shouldn't check for timing --- http_logging_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_logging_test.go b/http_logging_test.go index d8e48bb..2df3aca 100644 --- a/http_logging_test.go +++ b/http_logging_test.go @@ -116,7 +116,7 @@ func TestLogAndCall(t *testing.T) { w.Flush() actual = b.String() //nolint: lll - expectedPrefix = `{"level":"info","msg":"test-log-and-call2","method":"","url":"/tea","host":"","proto":"","remote_addr":"","header.x-forwarded-host":"foo2.fortio.org","status":418,"size":5,"microsec":10` + expectedPrefix = `{"level":"info","msg":"test-log-and-call2","method":"","url":"/tea","host":"","proto":"","remote_addr":"","header.x-forwarded-host":"foo2.fortio.org","status":418,"size":5,` if !strings.HasPrefix(actual, expectedPrefix) { t.Errorf("unexpected:\n%s\nvs should start with:\n%s\n", actual, expectedPrefix) }