Fix typo (#19889)
This commit is contained in:
parent
090d89e0f9
commit
abb7d4ae5d
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ func PrintCurrentTest(t testing.TB, skip ...int) func() {
|
||||||
if log.CanColorStdout {
|
if log.CanColorStdout {
|
||||||
fmt.Fprintf(os.Stdout, "+++ %s is a slow test (took %v)\n", fmt.Formatter(log.NewColoredValue(t.Name(), log.Bold, log.FgYellow)), fmt.Formatter(log.NewColoredValue(took, log.Bold, log.FgYellow)))
|
fmt.Fprintf(os.Stdout, "+++ %s is a slow test (took %v)\n", fmt.Formatter(log.NewColoredValue(t.Name(), log.Bold, log.FgYellow)), fmt.Formatter(log.NewColoredValue(took, log.Bold, log.FgYellow)))
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintf(os.Stdout, "+++ %s is a slow tets (took %v)\n", t.Name(), took)
|
fmt.Fprintf(os.Stdout, "+++ %s is a slow test (took %v)\n", t.Name(), took)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
timer := time.AfterFunc(slowFlush, func() {
|
timer := time.AfterFunc(slowFlush, func() {
|
||||||
|
|
|
@ -111,7 +111,7 @@ func PrintCurrentTest(t testing.TB, skip ...int) func() {
|
||||||
if log.CanColorStdout {
|
if log.CanColorStdout {
|
||||||
fmt.Fprintf(os.Stdout, "+++ %s is a slow test (took %v)\n", fmt.Formatter(log.NewColoredValue(t.Name(), log.Bold, log.FgYellow)), fmt.Formatter(log.NewColoredValue(took, log.Bold, log.FgYellow)))
|
fmt.Fprintf(os.Stdout, "+++ %s is a slow test (took %v)\n", fmt.Formatter(log.NewColoredValue(t.Name(), log.Bold, log.FgYellow)), fmt.Formatter(log.NewColoredValue(took, log.Bold, log.FgYellow)))
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintf(os.Stdout, "+++ %s is a slow tets (took %v)\n", t.Name(), took)
|
fmt.Fprintf(os.Stdout, "+++ %s is a slow test (took %v)\n", t.Name(), took)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
timer := time.AfterFunc(slowFlush, func() {
|
timer := time.AfterFunc(slowFlush, func() {
|
||||||
|
|
Loading…
Reference in a new issue