Skip to content

Commit

Permalink
Don't use strings.ReplaceAll
Browse files Browse the repository at this point in the history
Not available in Go 1.11
  • Loading branch information
vbrown608 committed Mar 21, 2019
1 parent e69f81f commit 02b2602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checker/cmd/starttls-check/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestUpdateStats(t *testing.T) {
Source: ts.URL,
Attempted: 3,
}.String()
expected = strings.ReplaceAll(expected, time.Time{}.String(), ".*")
expected = strings.Replace(expected, time.Time{}.String(), ".*", 1)
re := regexp.MustCompile(expected)

if !re.MatchString(got) {
Expand Down

0 comments on commit 02b2602

Please sign in to comment.