Skip to content

Commit

Permalink
really enable argon tests (java 21)
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 28, 2024
1 parent 78542d5 commit f99af45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/functions/Argon2CheckHash.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="argon2" {

function run( testResults , testBox ) {
describe( title = "Testcase for Argon2CheckHash function", body = function() {
it( title = "checking Argon2CheckHash function", skip=getJavaVersion()>20, body = function( currentSpec ) {
it( title = "checking Argon2CheckHash function", body = function( currentSpec ) {
secret = createUUID();
generateHash = generateArgon2Hash(secret);
expect( argon2checkhash(secret, generateHash)).toBeTrue();
Expand Down
4 changes: 2 additions & 2 deletions test/functions/GenerateArgon2Hash.cfc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
component extends="org.lucee.cfml.test.LuceeTestCase" labels="argon2" {
function run( testResults , testBox ) {
describe( "test case for GenerateArgon2Hash", function() {
it(title = "Checking with GenerateArgon2Hash()",skip=getJavaVersion()>20, body = function( currentSpec ) {
it(title = "Checking with GenerateArgon2Hash()", body = function( currentSpec ) {
assertEquals(true, Argon2CheckHash('test', GenerateArgon2Hash('test')));
});

it(title = "Checking with GenerateArgon2Hash",skip=getJavaVersion()>20, body = function( currentSpec ) {
it(title = "Checking with GenerateArgon2Hash", body = function( currentSpec ) {

assertEquals(true,"#Argon2CheckHash('test', GenerateArgon2Hash('test'))#");

Expand Down

0 comments on commit f99af45

Please sign in to comment.