fix old tests that's found not working during travis integration.

This commit is contained in:
Chris Lu
2014-07-20 23:41:25 -07:00
parent a0b2582a75
commit df2d3ea7c0
4 changed files with 10 additions and 110 deletions

View File

@@ -106,7 +106,7 @@ func TestHeader(t *testing.T) {
}
Info("test")
var line, pid int
n, err := fmt.Sscanf(contents(infoLog), "I0102 15:04:05.678901 %d glog_test.go:%d] test\n", &pid, &line)
n, err := fmt.Sscanf(contents(infoLog), "I0102 15:04:05 %d glog_test.go:%d] test\n", &pid, &line)
if n != 2 || err != nil {
t.Errorf("log format error: %d elements, error %s:\n%s", n, err, contents(infoLog))
}