Skip to content

Commit

Permalink
test shouldn't check for timing
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Oct 2, 2024
1 parent b8c31bd commit 446f51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 446f51a

Please sign in to comment.