Skip to content

Commit

Permalink
Changing test peer to an active one and removed inconsistent test con…
Browse files Browse the repository at this point in the history
…dition
  • Loading branch information
oak committed Feb 7, 2023
1 parent 315f846 commit 9d92ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class AbstractJsonRpcTests extends AbstractJsonTests {
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public enum CasperNetwork {
MAIN_NET("63.33.251.206", 7777), TEST_NET("139.180.189.141", 7777);
MAIN_NET("152.32.239.13", 7777), TEST_NET("85.114.132.133", 7777);

private final String ip;
private final int port;
Expand Down
8 changes: 1 addition & 7 deletions src/test/java/com/casper/sdk/service/CasperServiceTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.casper.sdk.model.deploy.executabledeploy.ModuleBytes;
import com.casper.sdk.model.deploy.executabledeploy.StoredContractByHash;
import com.casper.sdk.model.deploy.executionresult.Success;
import com.casper.sdk.model.deploy.transform.WriteCLValue;
import com.casper.sdk.model.era.EraInfoData;
import com.casper.sdk.model.globalstate.GlobalStateData;
import com.casper.sdk.model.key.AlgorithmTag;
Expand Down Expand Up @@ -45,11 +44,7 @@
import java.util.Collections;
import java.util.List;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.*;

/**
* Unit tests for {@link CasperService}
Expand Down Expand Up @@ -216,7 +211,6 @@ void getDeploy() {
assertNotNull(deployData.getDeploy());
assertTrue(deployData.getDeploy().getSession() instanceof StoredContractByHash);
assertTrue(deployData.getExecutionResults().get(0).getResult() instanceof Success);
assertTrue(((Success) deployData.getExecutionResults().get(0).getResult()).getEffect().getTransforms().get(0).getTransform() instanceof WriteCLValue);
assertTrue(deployData.getDeploy().getPayment() instanceof ModuleBytes);
assertTrue(deployData.getDeploy().getSession() instanceof StoredContractByHash);
String tmp = ((StoredContractByHash) deployData.getDeploy().getSession()).getHash();
Expand Down

0 comments on commit 9d92ba4

Please sign in to comment.