Skip to content

Commit

Permalink
Check redirect request metrics in TestRequestAndBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Sep 4, 2020
1 parent e6b3814 commit e6b65c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/modules/k6/http/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ func TestRequestAndBatch(t *testing.T) {
}

assert.Equal(t, 10, reqsCount)
assertRequestMetricsEmitted(t, bufSamples, "GET", sr("HTTPBIN_URL/redirect/9"), sr("HTTPBIN_URL/redirect/9"), 302, "")
for i := 8; i > 0; i-- {
url := sr(fmt.Sprintf("HTTPBIN_URL/relative-redirect/%d", i))
assertRequestMetricsEmitted(t, bufSamples, "GET", url, url, 302, "")
}
assertRequestMetricsEmitted(t, bufSamples, "GET", sr("HTTPBIN_URL/get"), sr("HTTPBIN_URL/get"), 200, "")
})

Expand Down

0 comments on commit e6b65c8

Please sign in to comment.