Skip to content

Commit

Permalink
Tests sporadically failing - potentially due to network connectivity/…
Browse files Browse the repository at this point in the history
…timing issues. Add some sleeps?!
  • Loading branch information
DominicWatson committed Jul 4, 2023
1 parent 88aba2f commit e2dfcf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/S3StorageProviderTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ component extends="testbox.system.BaseSpec" {
var objUrl = svc.getObjectUrl( targetPath );

expect( objUrl contains "amazonaws.com" ).toBeTrue();
sleep( 200 );
http url=objUrl timeout=10 result="result";
expect( Val( result.statuscode ) ).toBe( 200 );
} );
Expand Down Expand Up @@ -405,6 +406,7 @@ component extends="testbox.system.BaseSpec" {
var objUrl = svc.getObjectUrl( targetPath );

expect( objUrl contains "amazonaws.com" ).toBeTrue();
sleep( 200 );
http url=objUrl timeout=10 result="result";
expect( Val( result.statuscode ) ).toBe( 200 );
} );
Expand Down Expand Up @@ -434,6 +436,7 @@ component extends="testbox.system.BaseSpec" {
var objUrl = Replace( svc.getObjectUrl( targetPath ), "/public/", "/private/" );

expect( objUrl contains "amazonaws.com" ).toBeTrue();
sleep( 200 );
http url=objUrl timeout=10 result="result";
expect( Val( result.statuscode ) ).toBe( 403 );
} );
Expand Down

0 comments on commit e2dfcf7

Please sign in to comment.