diff --git a/api/src/test/java/com/strategyobject/substrateclient/api/pallet/balances/BalancesTest.java b/api/src/test/java/com/strategyobject/substrateclient/api/pallet/balances/BalancesTest.java index 1aefe16..bfcd88c 100644 --- a/api/src/test/java/com/strategyobject/substrateclient/api/pallet/balances/BalancesTest.java +++ b/api/src/test/java/com/strategyobject/substrateclient/api/pallet/balances/BalancesTest.java @@ -78,12 +78,17 @@ void transfer() throws Exception { private void doTransfer(Api api) { val genesis = api.rpc(Chain.class).getBlockHash(BlockNumber.GENESIS).join(); AtomicReference statusAtomicReference = new AtomicReference<>(); - assertDoesNotThrow(() -> + assertDoesNotThrow(() ->{ + try{ api.rpc(Author.class).submitAndWatchExtrinsic(createBalanceTransferExtrinsic(genesis), (x, status) -> { if(status.getStatus().equals(ExtrinsicStatus.Status.IN_BLOCK)){ statusAtomicReference.set(status.getStatus()); } - }).join()); + }).join(); + }catch(Exception e){ + throw new RuntimeException(e); + } + }); await() .atMost(WAIT_TIMEOUT, TimeUnit.SECONDS) .untilAtomic(statusAtomicReference, Matchers.equalTo(ExtrinsicStatus.Status.IN_BLOCK)); diff --git a/build.gradle b/build.gradle index de0ddca..53e9c85 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { allprojects { group = 'com.strategyobject.substrateclient' - version = '0.2.5.4-SNAPSHOT' + version = '0.2.5.5-SNAPSHOT' repositories { mavenLocal() diff --git a/rpc/rpc-api/src/test/java/com/strategyobject/substrateclient/rpc/api/section/AuthorTests.java b/rpc/rpc-api/src/test/java/com/strategyobject/substrateclient/rpc/api/section/AuthorTests.java index c296a08..61a71ad 100644 --- a/rpc/rpc-api/src/test/java/com/strategyobject/substrateclient/rpc/api/section/AuthorTests.java +++ b/rpc/rpc-api/src/test/java/com/strategyobject/substrateclient/rpc/api/section/AuthorTests.java @@ -128,8 +128,8 @@ void submitAndWatchExtrinsic() throws Exception { {"jsonrpc":"2.0","result":false,"id":35} as of 1.1.0 the unwatchExtrinsic returns false, changing the assertion so (assuming they do) fix it we can change it back */ - //Assertions.assertTrue(result); - Assertions.assertFalse(result); + Assertions.assertTrue(result); + //Assertions.assertFalse(result); } } diff --git a/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/FrequencyVersion.java b/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/FrequencyVersion.java index 5a2b643..80d5c76 100644 --- a/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/FrequencyVersion.java +++ b/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/FrequencyVersion.java @@ -1,8 +1,8 @@ package com.strategyobject.substrateclient.tests.containers; public class FrequencyVersion { - public static final String CURRENT_VERSION = "v1.11.0"; - public static final Long SPEC = 74L; + public static final String CURRENT_VERSION = "v1.13.0-rc4"; + public static final Long SPEC = 103L; private FrequencyVersion() { } diff --git a/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/TestSubstrateContainer.java b/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/TestSubstrateContainer.java index 16f8983..edfce0c 100644 --- a/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/TestSubstrateContainer.java +++ b/tests/src/main/java/com/strategyobject/substrateclient/tests/containers/TestSubstrateContainer.java @@ -6,7 +6,7 @@ * We are using our Frequency node for the Substrate container as Substrate is no longer versioned well */ public class TestSubstrateContainer extends GenericContainer { - private static final String IMAGE = "frequencychain/instant-seal-node:"; + private static final String IMAGE = "frequencychain/standalone-node:"; public TestSubstrateContainer(String version) { super(IMAGE + version);