Skip to content

Commit 85dab89

Browse files
committed
fix test
1 parent 8f45acd commit 85dab89

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

xrpl4j-core/src/test/java/org/xrpl/xrpl4j/model/ledger/LedgerHeaderJsonTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public void deserializeWithProblematicTimeStamp() throws JsonProcessingException
231231
" \"ledger_hash\" : \"3652D7FD0576BC452C0D2E9B747BDD733075971D1A9A1D98125055DEF428721A\",\n" +
232232
" \"account_hash\" : \"B258A8BB4743FB74CBBD6E9F67E4A56C4432EA09E5805E4CC2DA26F2DBE8F3D1\",\n" +
233233
" \"close_time\" : 638329271,\n" +
234-
" \"close_time_human\" : \"2021-Jun-11 09:06:10.000000000.000000.000 UTC\",\n" +
234+
" \"close_time_human\" : \"2021-Jun-11 09:06:10.000000000 UTC\",\n" +
235235
" \"closed\" : true,\n" +
236236
" \"parent_hash\" : \"AE996778246BC81F85D5AF051241DAA577C23BCA04C034A7074F93700194520D\",\n" +
237237
" \"parent_close_time\" : 638329270,\n" +

xrpl4j-integration-tests/src/test/java/org/xrpl/xrpl4j/tests/ConfidentialTransfersIT.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import com.google.common.primitives.UnsignedInteger;
2828
import com.google.common.primitives.UnsignedLong;
2929
import org.junit.jupiter.api.Test;
30+
import org.junit.jupiter.api.condition.DisabledIf;
3031
import org.xrpl.xrpl4j.client.JsonRpcClientErrorException;
3132
import org.xrpl.xrpl4j.crypto.keys.KeyPair;
3233
import org.xrpl.xrpl4j.crypto.mpt.BlindingFactor;
@@ -86,11 +87,17 @@
8687
import java.util.Collections;
8788
import java.util.Optional;
8889

89-
@SuppressWarnings("OptionalGetWithoutIsPresent")
90+
@DisabledIf(value = "shouldNotRun", disabledReason = "ConfidentialTransfersIT only runs on local rippled node.")
9091
public class ConfidentialTransfersIT extends AbstractIT {
9192

9293
private static final String SUCCESS_STATUS = "tesSUCCESS";
9394

95+
static boolean shouldNotRun() {
96+
return System.getProperty("useTestnet") != null ||
97+
System.getProperty("useClioTestnet") != null ||
98+
System.getProperty("useDevnet") != null;
99+
}
100+
94101
@Test
95102
public void testEntireFlow() throws JsonRpcClientErrorException, JsonProcessingException {
96103
//////////////////////

0 commit comments

Comments
 (0)