From dd8a41adc55219c0a521cd6d869af0429beef39e Mon Sep 17 00:00:00 2001 From: Kyon <32325790+kyonRay@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:11:01 +0800 Subject: [PATCH] (integration): fix TransactionManagerPayableTest bug. (#872) --- .../manager/TransactionManagerPayableTest.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/integration-test/java/org/fisco/bcos/sdk/v3/test/transaction/manager/TransactionManagerPayableTest.java b/src/integration-test/java/org/fisco/bcos/sdk/v3/test/transaction/manager/TransactionManagerPayableTest.java index 6b5a9877d..34cb40299 100644 --- a/src/integration-test/java/org/fisco/bcos/sdk/v3/test/transaction/manager/TransactionManagerPayableTest.java +++ b/src/integration-test/java/org/fisco/bcos/sdk/v3/test/transaction/manager/TransactionManagerPayableTest.java @@ -72,10 +72,15 @@ public void test1ComplexCodecWithType() throws Exception { BalanceService balanceService = new BalanceService(client, client.getCryptoSuite().getCryptoKeyPair()); - SystemConfig balanceFeature = - client.getSystemConfigByKey( - SystemConfigFeature.Features.FEATURE_BALANCE.toString()); - if (!"1".equals(balanceFeature.getSystemConfig().getValue())) { + try { + SystemConfig balanceFeature = + client.getSystemConfigByKey( + SystemConfigFeature.Features.FEATURE_BALANCE.toString()); + if (!"1".equals(balanceFeature.getSystemConfig().getValue())) { + return; + } + } catch (Exception e) { + System.out.println("getSystemConfigByKey error, skip."); return; }