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

Clean test storage on exit to prevent assert in next test #497

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qbast
Copy link

@qbast qbast commented Aug 16, 2019

Running ./gradlew build on linux causes following test failure:

io.moquette.integration.ServerIntegrationPahoCanPublishOnReadBlockedTopicTest > shouldNotInternalPublishOnReadBlockedSubscriptionTopic PASSED

io.moquette.integration.ServerIntegrationSSLClientAuthTest > checkClientAuthentication FAILED
java.lang.AssertionError: The DB storagefile /home/kuba/moquette/broker/build/moquette_store.h2 already exists
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.junit.Assert.assertFalse(Assert.java:68)
at io.moquette.integration.ServerIntegrationSSLClientAuthTest.setUp(ServerIntegrationSSLClientAuthTest.java:154)

This is caused by ServerIntegrationPahoCanPublishOnReadBlockedTopicTest not deleting H2 file in tearDown

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.

None yet

1 participant