Skip to content

Commit

Permalink
make request timeout error message lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal Kuo authored and mstoykov committed May 20, 2021
1 parent e02986d commit a527715
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ func TestDNSResolver(t *testing.T) {

expErr := sr(`dial tcp 127.0.0.254:HTTPBIN_PORT: connect: connection refused`)
if runtime.GOOS == "windows" {
expErr = "Request timeout"
expErr = "request timeout"
}
for name, tc := range testCases {
tc := tc
Expand Down
4 changes: 2 additions & 2 deletions js/modules/k6/http/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func TestRequestAndBatch(t *testing.T) {
`))
endTime := time.Now()
require.Error(t, err)
assert.Contains(t, err.Error(), "Request timeout")
assert.Contains(t, err.Error(), "request timeout")
assert.WithinDuration(t, startTime.Add(1*time.Second), endTime, 2*time.Second)

logEntry := hook.LastEntry()
Expand All @@ -344,7 +344,7 @@ func TestRequestAndBatch(t *testing.T) {
`))
endTime := time.Now()
require.Error(t, err)
assert.Contains(t, err.Error(), "Request timeout")
assert.Contains(t, err.Error(), "request timeout")
assert.WithinDuration(t, startTime.Add(1*time.Second), endTime, 2*time.Second)

logEntry := hook.LastEntry()
Expand Down
2 changes: 1 addition & 1 deletion lib/netext/httpext/error_codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const (
http2ConnectionErrorCodeMsg = "http2: connection error with http2 ErrCode %s"
x509HostnameErrorCodeMsg = "x509: certificate doesn't match hostname"
x509UnknownAuthority = "x509: unknown authority"
requestTimeoutErrorCodeMsg = "Request timeout"
requestTimeoutErrorCodeMsg = "request timeout"
)

func http2ErrCodeOffset(code http2.ErrCode) errCode {
Expand Down

0 comments on commit a527715

Please sign in to comment.