Skip to content

fix test, force MongoDBID to be a struct #1433

fix test, force MongoDBID to be a struct

fix test, force MongoDBID to be a struct #1433

GitHub Actions / Lucee Test Results failed Dec 10, 2024 in 0s

1 fail, 226 skipped, 3 633 pass in 4m 1s

    1 files  ±0  1 488 suites  ±0   4m 1s ⏱️ -5s
3 860 tests ±0  3 633 ✅ ±0  226 💤 ±0  1 ❌ ±0 
3 996 runs  ±0  3 733 ✅ ±0  262 💤 ±0  1 ❌ ±0 

Results for commit 86f3ea8. ± Comparison against earlier commit 1119906.

Annotations

Check warning on line 0 in test.tags.Query

See this annotation in the file changed.

@github-actions github-actions / Lucee Test Results

testAsynUDF (test.tags.Query) failed

test/reports/junit-test-results-6.2.0.199-SNAPSHOT.xml [took 1s]
Raw output
Expected [false] to be true

					[{Raw_Trace={system.assertion_cfc$cf$1an.udfCall1(/testbox/system/Assertion.cfc:20)}, codePrintPlain={18: 			type    = "TestBox.AssertionFailed",
19: 			message = arguments.message,
20: 			detail  = arguments.detail
21: 		);
22: 	}
}, column={0}, line={20}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={18: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&quot;TestBox.AssertionFailed&quot;,<br>
19: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message&nbsp;=&nbsp;arguments.message,<br>
<b>20: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;detail&nbsp;&nbsp;=&nbsp;arguments.detail</b><br>
21: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br>
22: &nbsp;&nbsp;&nbsp;}<br>
}}, {Raw_Trace={system.assertion_cfc$cf$1an.udfCall1(/testbox/system/Assertion.cfc:60)}, codePrintPlain={58: 		);
59: 		if ( NOT arguments.actual ) {
60: 			fail( arguments.message );
61: 		}
62: 		return this;
}, column={0}, line={60}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={58: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br>
59: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;NOT&nbsp;arguments.actual&nbsp;)&nbsp;{<br>
<b>60: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fail(&nbsp;arguments.message&nbsp;);</b><br>
61: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
62: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;this;<br>
}}, {Raw_Trace={system.expectation_cfc$cf$1ak.udfCall1(/testbox/system/Expectation.cfc:140)}, codePrintPlain={138: 			variables.assert.isFalse( argumentCollection = arguments );
139: 		} else {
140: 			variables.assert.isTrue( argumentCollection = arguments );
141: 		}
142: 
}, column={0}, line={140}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={138: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables.assert.isFalse(&nbsp;argumentCollection&nbsp;=&nbsp;arguments&nbsp;);<br>
139: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{<br>
<b>140: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables.assert.isTrue(&nbsp;argumentCollection&nbsp;=&nbsp;arguments&nbsp;);</b><br>
141: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
142: <br>
}}, {Raw_Trace={tags.query_cfc$cf$2ag.udfCall2(/test/tags/Query.cfc:246)}, codePrintPlain={244: 		testAsyn(udf,tbl,0);
245: 		sleep(500);
246: 		expect(server.query_testAsynUDF).toBeTrue();
247: 		structDelete( server, "query_testAsynUDF");
248: 	}
}, column={0}, line={246}, template={/home/runner/work/Lucee/Lucee/test/tags/Query.cfc}, id={??}, type={cfml}, codePrintHTML={244: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testAsyn(udf,tbl,0);<br>
245: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sleep(500);<br>
<b>246: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expect(server.query_testAsynUDF).toBeTrue();</b><br>
247: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;structDelete(&nbsp;server,&nbsp;&quot;query_testAsynUDF&quot;);<br>
248: &nbsp;&nbsp;&nbsp;}<br>
}}, {Raw_Trace={system.basespec_cfc$cf$1aj.udfCall6(/testbox/system/BaseSpec.cfc:1385)}, codePrintPlain={1383: 				// Execute Spec
1384: 				try {
1385: 					invoke( this, arguments.spec.name );
1386: 
1387: 					// Where we expecting an exception and it did not throw?
}, column={0}, line={1385}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1383: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Execute&nbsp;Spec<br>
1384: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br>
<b>1385: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invoke(&nbsp;this,&nbsp;arguments.spec.name&nbsp;);</b><br>
1386: <br>
1387: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Where&nbsp;we&nbsp;expecting&nbsp;an&nbsp;exception&nbsp;and&nbsp;it&nbsp;did&nbsp;not&nbsp;throw?<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf$1ao.udfCall(/testbox/system/runners/UnitRunner.cfc:310)}, codePrintPlain={308: 						suiteStats  = thread.suiteStats,
309: 						runner      = this
310: 					);
311: 
312: 					// verify call backs
}, column={0}, line={310}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={308: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;suiteStats&nbsp;&nbsp;=&nbsp;thread.suiteStats,<br>
309: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;runner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;this<br>
<b>310: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);</b><br>
311: <br>
312: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;verify&nbsp;call&nbsp;backs<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf$1ao.udfCall(/testbox/system/runners/UnitRunner.cfc:111)}, codePrintPlain={109: 						testResults = arguments.testResults,
110: 						bundleStats = bundleStats,
111: 						callbacks   = arguments.callbacks
112: 					);
113: 
}, column={0}, line={111}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={109: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testResults&nbsp;=&nbsp;arguments.testResults,<br>
110: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bundleStats&nbsp;=&nbsp;bundleStats,<br>
<b>111: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callbacks&nbsp;&nbsp;&nbsp;=&nbsp;arguments.callbacks</b><br>
112: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br>
113: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19n.udfCall3(/testbox/system/TestBox.cfc:761)}, codePrintPlain={759: 					target,
760: 					arguments.testResults,
761: 					arguments.callbacks
762: 				);
763: 			}
}, column={0}, line={761}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={759: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target,<br>
760: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arguments.testResults,<br>
<b>761: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arguments.callbacks</b><br>
762: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br>
763: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
}}, {Raw_Trace={system.testbox_cfc$cf$19n.udfCall2(/testbox/system/TestBox.cfc:462)}, codePrintPlain={460: 				bundlePath  = thisBundlePath,
461: 				testResults = results,
462: 				callbacks   = arguments.callbacks
463: 			);
464: 
}, column={0}, line={462}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={460: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bundlePath&nbsp;&nbsp;=&nbsp;thisBundlePath,<br>
461: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testResults&nbsp;=&nbsp;results,<br>
<b>462: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callbacks&nbsp;&nbsp;&nbsp;=&nbsp;arguments.callbacks</b><br>
463: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br>
464: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19n.udfCall2(/testbox/system/TestBox.cfc:351)}, codePrintPlain={349: 		}
350: 		// run it and get results
351: 		var results      = runRaw( argumentCollection = arguments );
352: 		// store latest results
353: 		variables.result = results;
}, column={0}, line={351}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={349: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
350: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;run&nbsp;it&nbsp;and&nbsp;get&nbsp;results<br>
<b>351: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;results&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;runRaw(&nbsp;argumentCollection&nbsp;=&nbsp;arguments&nbsp;);</b><br>
352: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;store&nbsp;latest&nbsp;results<br>
353: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables.result&nbsp;=&nbsp;results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf$5.udfCall(/test/_testRunner.cfc:297)}, codePrintPlain={295: 	,onSpecEnd 		= function( bundle, testResults, suite, spec ){}*/
296: } // callbacks
297: 			); // report = tb.run
298: 
299: 	 		// get the result
}, column={0}, line={297}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={295: &nbsp;&nbsp;&nbsp;,onSpecEnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;function(&nbsp;bundle,&nbsp;testResults,&nbsp;suite,&nbsp;spec&nbsp;){}*/<br>
296: }&nbsp;//&nbsp;callbacks<br>
<b>297: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);&nbsp;//&nbsp;report&nbsp;=&nbsp;tb.run</b><br>
298: <br>
299: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;get&nbsp;the&nbsp;result<br>
}}, {Raw_Trace={run_tests_cfm180$cf$1.call(/test/run-tests.cfm:348)}, codePrintPlain={346: 	systemOutput(NL & "-------------- Start Tests -----------", true);
347: 	silent {
348: 		testResults = new test._testRunner().runTests();
349: 	}
350: 
}, column={0}, line={348}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={346: &nbsp;&nbsp;&nbsp;systemOutput(NL&nbsp;&amp;&nbsp;&quot;--------------&nbsp;Start&nbsp;Tests&nbsp;-----------&quot;,&nbsp;true);<br>
347: &nbsp;&nbsp;&nbsp;silent&nbsp;{<br>
<b>348: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testResults&nbsp;=&nbsp;new&nbsp;test._testRunner().runTests();</b><br>
349: &nbsp;&nbsp;&nbsp;}<br>
350: <br>
}}]