Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MessageHistoryTest to run with history.as.bytes=true on mac #881

Open
RobAustin opened this issue Apr 19, 2024 · 0 comments
Open

Fix MessageHistoryTest to run with history.as.bytes=true on mac #881

RobAustin opened this issue Apr 19, 2024 · 0 comments
Assignees

Comments

@RobAustin
Copy link
Member

RobAustin commented Apr 19, 2024

If you run MessageHistoryTest#checkHistoryMaxSizeException on Mac from the shell, like this:

mvn clean compile test -Dtest=net.openhft.chronicle.wire.MessageHistoryTest#checkHistoryMaxSizeException -f pom.xml

It produces this error only when run with useBytesMarshallable(true);

[main] INFO net.openhft.chronicle.core.Jvm - Chronicle core loaded from file:/Users/robaustin/.m2/repository/net/openhft/chronicle-core/2.25ea14/chronicle-core-2.25ea14.jar
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.105 s <<< FAILURE! -- in net.openhft.chronicle.wire.MessageHistoryTest
[ERROR] net.openhft.chronicle.wire.MessageHistoryTest.checkHistoryMaxSizeException -- Time elapsed: 0.098 s <<< FAILURE!
java.lang.AssertionError: timings=2
	at org.junit.Assert.fail(Assert.java:89)
	at net.openhft.chronicle.wire.MessageHistoryTest.checkHistoryMaxSizeException(MessageHistoryTest.java:86)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   MessageHistoryTest.checkHistoryMaxSizeException:86 timings=2
[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.479 s
[INFO] Finished at: 2024-04-19T09:08:57+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project chronicle-wire: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/robaustin/projects/Chronicle-Wire/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 

NOTE: it works when the useBytesMarshallable(false) and it always works within the IDE, just fails when run from mvn with and useBytesMarshallable(true) in a mvn test

@RobAustin RobAustin changed the title net.openhft.chronicle.wire.MessageHistoryTest to run with history.as.bytes=true on mac Fix MessageHistoryTest to run with history.as.bytes=true on mac Apr 19, 2024
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

No branches or pull requests

2 participants