Skip to content

Commit

Permalink
Fix ApacheLogger test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Nov 16, 2013
1 parent 859f48b commit 15e63e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestApacheLogger(t *testing.T) {
logger.Logger = log.New(b, "", 0)
logger.ServeHTTP(w, r)
s := b.String()
if ok, _ := regexp.MatchString(`^127\.0\.0\.1 - rcrowley \[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{1,9} [+-]\d{4} [A-Z]{3}\] "GET /foo HTTP/1.1" 200 14 "http://example.com/" "Tiger Tonic tests"\n$`, s); !ok {
if ok, _ := regexp.MatchString(`^127\.0\.0\.1 - rcrowley \[\d{2}/\w{3}/\d{4}:\d{2}:\d{2}:\d{2} [+-]\d{4}\] "GET /foo HTTP/1.1" 200 14 "http://example.com/" "Tiger Tonic tests"\n$`, s); !ok {
t.Fatal(s)
}
}
Expand Down

0 comments on commit 15e63e3

Please sign in to comment.