Skip to content

Fixing below console warning coming on buildbot.#1315

Merged
ashishvijaywargiya merged 1 commit into
apache:trunkfrom
ashishvijaywargiya:buildbot-failure-fix
Jun 2, 2026
Merged

Fixing below console warning coming on buildbot.#1315
ashishvijaywargiya merged 1 commit into
apache:trunkfrom
ashishvijaywargiya:buildbot-failure-fix

Conversation

@ashishvijaywargiya

Copy link
Copy Markdown
Contributor

2026-06-02 12:21:22,276 |main |TestRunContainer |I| [JUNIT] : testSecurity finished.
2026-06-02 12:21:22,276 |main |TestRunContainer |I| [JUNIT] : testNowTimestampUel starting...
2026-06-02 12:21:22,740 |main |TestRunContainer |W| [JUNIT (error)] - testNowTimestampUel : Assertion failed:

assert (fse.expand([:]).time - UtilDateTime.nowTimestamp().time).abs() < 15
| | | | | | | |
| | | -20 | | 20 false
| | 1780402882494 | 1780402882514
| 2026-06-02 12:21:22.494 2026-06-02 12:21:22.514
${date:nowTimestamp()}

Assertion failed:

assert (fse.expand([:]).time - UtilDateTime.nowTimestamp().time).abs() < 15
| | | | | | | |
| | | -20 | | 20 false
| | 1780402882494 | 1780402882514
| 2026-06-02 12:21:22.494 2026-06-02 12:21:22.514
${date:nowTimestamp()}

at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
at org.apache.ofbiz.base.test.uel.DateUelTest.testNowTimestampUel(DateUelTest.groovy:106)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at junit.framework.TestCase.runTest(TestCase.java:177)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at org.apache.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:90)
at org.apache.ofbiz.base.container.ContainerLoader.startLoadedContainers(ContainerLoader.java:153)
at org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:77)
at org.apache.ofbiz.base.start.StartupControlPanel.loadContainers(StartupControlPanel.java:146)
at org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:70)
at org.apache.ofbiz.base.start.Start.main(Start.java:89)

2026-06-02 12:21:22,753 |main |TestRunContainer |I| [JUNIT] : testNowTimestampUel finished.
2026-06-02 12:21:22,754 |main |TestRunContainer |I| [JUNIT] : testDateUel starting...
2026-06-02 12:21:22,883 |main |TestRunContainer |I| [JUNIT] : testDateUel finished.
2026-06-02 12:21:22,883 |main |TestRunContainer |I| [JUNIT] : testMathUel starting...
2026-06-02 12:21:23,163 |main |TestRunContainer |I| [JUNIT] : testMathUel finished.

This was the 2nd issue, which I was unable to reproduce on my laptop. :-(

2026-06-02 12:21:22,276 |main                 |TestRunContainer              |I| [JUNIT] : testSecurity finished.
2026-06-02 12:21:22,276 |main                 |TestRunContainer              |I| [JUNIT] : testNowTimestampUel starting...
2026-06-02 12:21:22,740 |main                 |TestRunContainer              |W| [JUNIT (error)] - testNowTimestampUel : Assertion failed:

assert (fse.expand([:]).time - UtilDateTime.nowTimestamp().time).abs() < 15
        |   |           |    |              |              |     |     |
        |   |           |    -20            |              |     20    false
        |   |           1780402882494       |              1780402882514
        |   2026-06-02 12:21:22.494         2026-06-02 12:21:22.514
        ${date:nowTimestamp()}

Assertion failed:

assert (fse.expand([:]).time - UtilDateTime.nowTimestamp().time).abs() < 15
        |   |           |    |              |              |     |     |
        |   |           |    -20            |              |     20    false
        |   |           1780402882494       |              1780402882514
        |   2026-06-02 12:21:22.494         2026-06-02 12:21:22.514
        ${date:nowTimestamp()}

	at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
	at org.apache.ofbiz.base.test.uel.DateUelTest.testNowTimestampUel(DateUelTest.groovy:106)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.apache.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:90)
	at org.apache.ofbiz.base.container.ContainerLoader.startLoadedContainers(ContainerLoader.java:153)
	at org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:77)
	at org.apache.ofbiz.base.start.StartupControlPanel.loadContainers(StartupControlPanel.java:146)
	at org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:70)
	at org.apache.ofbiz.base.start.Start.main(Start.java:89)
2026-06-02 12:21:22,753 |main                 |TestRunContainer              |I| [JUNIT] : testNowTimestampUel finished.
2026-06-02 12:21:22,754 |main                 |TestRunContainer              |I| [JUNIT] : testDateUel starting...
2026-06-02 12:21:22,883 |main                 |TestRunContainer              |I| [JUNIT] : testDateUel finished.
2026-06-02 12:21:22,883 |main                 |TestRunContainer              |I| [JUNIT] : testMathUel starting...
2026-06-02 12:21:23,163 |main                 |TestRunContainer              |I| [JUNIT] : testMathUel finished.

This was the 2nd issue, which I was unable to reproduce on my laptop. :-(
@ashishvijaywargiya ashishvijaywargiya merged commit 7cf2f3a into apache:trunk Jun 2, 2026
5 checks passed
@ashishvijaywargiya ashishvijaywargiya deleted the buildbot-failure-fix branch June 2, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant