You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Core's testArbitratorSignWitness fails during cmd line build, therefore jars, start scripts and packages cannot be built (unless tests are not run).
Version
Release branch release/v1.3.2
Steps to reproduce
Linux: ./gradlew clean build
Expected behaviour
All tests should pass
Actual behaviour
Build fails:
bisq.core.account.witness.AccountAgeWitnessServiceTest > testArbitratorSignWitness FAILED
java.lang.AssertionError at AccountAgeWitnessServiceTest.java:220
AssertionError: expected:<0> but was:<2>
The assertion error's wording is a bit misleading. It should say expected:<2> but was:<0>
after the assert arguments are corrected: assertEquals(items.size(), 2);
is changed to assertEquals(2, items.size());
Device or machine
Linux / Ubuntu 18 / OpenJDK 11
Additional info
This tests PASSES when run in Intellij.
I have run the cmd line build (w/ tests), and run AccountAgeWitnessServiceTest in IDE several times to make sure this is the case: fails on cmd line, passes in IDE.
Note that this failing test is the only one of three test cases in AccountAgeWitnessServiceTest that is not ignored.
The text was updated successfully, but these errors were encountered:
ghubstan
added a commit
to ghubstan/bisq
that referenced
this issue
Apr 11, 2020
Test AccountAgeWitnessServiceTest > testArbitratorSignWitness failed
in full gradle build, but passed when run as a single test:
./gradlew :core:cleanTest :core:test \
--tests "bisq.core.account.witness.AccountAgeWitnessServiceTest"
This test also passed when run in the IDE.
Solved by not passing a mocked PaymentMethod.SEPA argument into the
test's service.getTraderPaymentAccounts() method, where mock paymentId
field was null when running full build's test suites.
Fix for bisq-network#4158
Test AccountAgeWitnessServiceTest > testArbitratorSignWitness failed
in full gradle build, but passed when run as a single test:
./gradlew :core:cleanTest :core:test \
--tests "bisq.core.account.witness.AccountAgeWitnessServiceTest"
This test also passed when run in the IDE.
Solved by not passing a mocked PaymentMethod.SEPA argument into the
test's service.getTraderPaymentAccounts() method, where mock paymentId
field was null when running full build's test suites.
Fix for #4158
Description
Core's testArbitratorSignWitness fails during cmd line build, therefore jars, start scripts and packages cannot be built (unless tests are not run).
Version
Release branch release/v1.3.2
Steps to reproduce
Linux: ./gradlew clean build
Expected behaviour
All tests should pass
Actual behaviour
Build fails:
The assertion error's wording is a bit misleading. It should say expected:<2> but was:<0>
after the assert arguments are corrected:
assertEquals(items.size(), 2);
is changed to
assertEquals(2, items.size());
Device or machine
Linux / Ubuntu 18 / OpenJDK 11
Additional info
This tests PASSES when run in Intellij.
I have run the cmd line build (w/ tests), and run AccountAgeWitnessServiceTest in IDE several times to make sure this is the case: fails on cmd line, passes in IDE.
Note that this failing test is the only one of three test cases in AccountAgeWitnessServiceTest that is not ignored.
The text was updated successfully, but these errors were encountered: