Skip to content

Commit

Permalink
improve test case
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Nov 8, 2023
1 parent 97dddff commit f1032a7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/general/BigBucket.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" {
assertTrue( executionTime<2000 );
assertEquals(10000, records); // 10000] but received [861
});


it(title="checking with S3Exists", skip=Util::isAWSNotSupported(), body = function( currentSpec ) {
var cred=Util::getAWSCredentials()

var executionTime=getTickCount();
S3Exists(
bucketName:bucketName,
accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST));
var executionTime=getTickCount()-executionTime;


assertTrue( executionTime<500 );
assertEquals(10000, executionTime);
});

});
}

Expand Down

0 comments on commit f1032a7

Please sign in to comment.