Skip to content

Commit

Permalink
Fixing ExpectError in tests (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Apr 6, 2023
1 parent 936b3c8 commit 4d22215
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/provider/data_source_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ func TestDataSource_InsecureFalse(t *testing.T) {
ExpectError: regexp.MustCompile(
fmt.Sprintf(
"Error making request: GET %s giving up after 1\n"+
"attempt\\(s\\): Get \"%s\": x509:",
"attempt\\(s\\): Get \"%s\": tls: failed to verify certificate:\n"+
"x509: certificate signed by unknown authority",
testServer.URL,
testServer.URL,
),
Expand All @@ -528,7 +529,8 @@ func TestDataSource_InsecureUnconfigured(t *testing.T) {
ExpectError: regexp.MustCompile(
fmt.Sprintf(
"Error making request: GET %s giving up after 1\n"+
"attempt\\(s\\): Get \"%s\": x509:",
"attempt\\(s\\): Get \"%s\": tls: failed to verify certificate:\n"+
"x509: certificate signed by unknown authority",
testServer.URL,
testServer.URL,
),
Expand Down

0 comments on commit 4d22215

Please sign in to comment.