Skip to content

Commit 59a2982

Browse files
committed
build: fix smtp test service detection
1 parent 6e7d788 commit 59a2982

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/_setupTestServices.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ component {
345345
// sometimes we run the 7 suite with 7.1
346346
getTagData("cf", "mail"); // with throw if mail ext with 7.1 not installed
347347
// call service cfc to test, to avoid compile error, due to tag syntax
348-
services.cfmail( smtp );
348+
services.cfmail::testMail( smtp );
349349
} catch (e) {
350-
throw e.message;
350+
throw(message=e.message, cause=e);
351351
}
352352
return "SMTP Connection Verified";
353353
}

test/services/cfmail.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* with lucee 7.1, mail was moved to an extension,
22
test here when the tag exists, to avoid compile error */
33
component {
4-
function testMail(smtp){
4+
static function testMail(smtp){
55
cfmail(from="[email protected]",
66
77
subject="service test",

0 commit comments

Comments
 (0)