Skip to content

Commit

Permalink
Make http.TestErrorCodes pass on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Oct 12, 2020
1 parent f0871fc commit 249ce2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/modules/k6/http/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ func TestErrorCodes(t *testing.T) {
name: "Unroutable",
expectedErrorCode: 1101,
expectedErrorMsg: "lookup: no such host",
script: `var res = http.request("GET", "http://sdafsgdhfjg/");`,
script: `var res = http.request("GET", "http://sdafsgdhfjg.com/");`,
},

{
Expand All @@ -1683,7 +1683,7 @@ func TestErrorCodes(t *testing.T) {
expectedErrorCode: 1101,
expectedErrorMsg: "lookup: no such host",
moreSamples: 1,
script: `var res = http.request("GET", "HTTPBIN_URL/redirect-to?url=http://dafsgdhfjg/");`,
script: `var res = http.request("GET", "HTTPBIN_URL/redirect-to?url=http://dafsgdhfjg.com/");`,
},
{
name: "Non location redirect",
Expand All @@ -1701,7 +1701,7 @@ func TestErrorCodes(t *testing.T) {
name: "Missing protocol",
expectedErrorCode: 1000,
expectedErrorMsg: `unsupported protocol scheme ""`,
script: `var res = http.request("GET", "dafsgdhfjg/");`,
script: `var res = http.request("GET", "dafsgdhfjg.com/");`,
},
{
name: "Too many redirects",
Expand Down

0 comments on commit 249ce2c

Please sign in to comment.