Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Failing branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrank13 committed Sep 11, 2024
1 parent 82de503 commit fe21921
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,17 @@ void transfer() throws Exception {
private void doTransfer(Api api) {
val genesis = api.rpc(Chain.class).getBlockHash(BlockNumber.GENESIS).join();
AtomicReference<ExtrinsicStatus.Status> 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));
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = 'com.strategyobject.substrateclient'
version = '0.2.5.4-SNAPSHOT'
version = '0.2.5.5-SNAPSHOT'

repositories {
mavenLocal()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestSubstrateContainer> {
private static final String IMAGE = "frequencychain/instant-seal-node:";
private static final String IMAGE = "frequencychain/standalone-node:";

public TestSubstrateContainer(String version) {
super(IMAGE + version);
Expand Down

0 comments on commit fe21921

Please sign in to comment.