Skip to content

Commit

Permalink
Add cfhttp timeouts
Browse files Browse the repository at this point in the history
make fixinator happy
  • Loading branch information
pfreitag authored Aug 18, 2023
1 parent c0be26a commit e93cab8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests/TestViews.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ component extends="testbox.system.BaseSpec" {

describe("Test Doc Views", function() {
it("should load a tag page: ", function() {
cfhttp(url="#baseURL#cfhttp", method="get", result="local.result");
cfhttp(url="#baseURL#cfhttp", method="get", result="local.result", timeout="5");
expect( left( local.result.statusCode, 3 ) ).toBe(200);
});
it("should load a function page: ", function() {
cfhttp(url="#baseURL#isdefined", method="get", result="local.result");
cfhttp(url="#baseURL#isdefined", method="get", result="local.result", timeout="5");
expect( left( local.result.statusCode, 3 ) ).toBe(200);
});

it("should load a guide page: ", function() {
cfhttp(url="#baseURL#cgi-scope", method="get", result="local.result");
cfhttp(url="#baseURL#cgi-scope", method="get", result="local.result", timeout="5");
expect( left( local.result.statusCode, 3 ) ).toBe(200);
});

it("should 404 a made up page: ", function() {
cfhttp(url="#baseURL#does-not-exist", method="get", result="local.result");
cfhttp(url="#baseURL#does-not-exist", method="get", result="local.result", timeout="5");
expect( left( local.result.statusCode, 3 ) ).toBe(404);
});
});
Expand Down

0 comments on commit e93cab8

Please sign in to comment.