From 296f0a8a33b83828a36139079517137f21ac3718 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Mon, 23 Dec 2024 09:50:52 +0100 Subject: [PATCH] LDEV-4635 improve test --- test/tickets/LDEV4635.cfc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tickets/LDEV4635.cfc b/test/tickets/LDEV4635.cfc index ca78e7a62b..73d79fc3b1 100644 --- a/test/tickets/LDEV4635.cfc +++ b/test/tickets/LDEV4635.cfc @@ -32,8 +32,9 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" { fileWrite(srcDir & "region.txt", storelocation ); if ( arguments.invalid ) { + var args=arguments; expect( function(){ - directory action="copy" directory="#srcDir#" destination="#arguments.bucket#" storelocation="#arguments.storelocation#"; + directory action="copy" directory="#srcDir#" destination="#args.bucket#" storelocation="#args.storelocation#"; }).toThrow(); } else { // try coping local dir to a new s3 bucket with a region