Skip to content

Commit

Permalink
Make e2e tests less flaky
Browse files Browse the repository at this point in the history
Occasionally on CI these tests will take longer than 100ms which will cause the test to fail
beause the output is different from expected
  • Loading branch information
dnephin committed Sep 7, 2020
1 parent 1363245 commit 4761deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/text/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func OpRemoveSummaryLineElapsedTime(line string) string {
}

func OpRemoveTestElapsedTime(line string) string {
if i := strings.Index(line, " (0.0"); i > 0 && i+8 == len(line) {
if i := strings.Index(line, " (0."); i > 0 && i+8 == len(line) {
return line[:i]
}
return line
Expand Down

0 comments on commit 4761deb

Please sign in to comment.