refactor: unflaky access log.
This commit is contained in:
parent
ce3b255f1a
commit
2296aab5a8
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ func CheckAccessLogFormat(c *check.C, line string, i int) {
|
|||
tokens, err := shellwords.Parse(line)
|
||||
c.Assert(err, checker.IsNil)
|
||||
c.Assert(tokens, checker.HasLen, 14)
|
||||
c.Assert(tokens[6], checker.Matches, `^\d{3}$`)
|
||||
c.Assert(tokens[6], checker.Matches, `^(-|\d{3})$`)
|
||||
c.Assert(tokens[10], checker.Equals, fmt.Sprintf("%d", i+1))
|
||||
c.Assert(tokens[11], checker.HasPrefix, "frontend")
|
||||
c.Assert(tokens[12], checker.HasPrefix, "http://127.0.0.1:808")
|
||||
|
|
Loading…
Reference in a new issue