Skip to content

Commit

Permalink
Nope, this is nonportable
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Ekberg committed May 19, 2017
1 parent 1f824e3 commit 77ae7e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/modules/k6/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ func TestRequest(t *testing.T) {
defer func() { *ctx = oldctx }()

_, err := common.RunString(rt, `http.get("https://httpbin.org/get/");`)
if assert.Error(t, err) {
assert.Contains(t, err.Error(), "context canceled")
}
assert.Error(t, err)
assert.Nil(t, hook.LastEntry())
})

Expand Down

0 comments on commit 77ae7e7

Please sign in to comment.