From 67a349075712c8247f51b66edd00696f2b875c95 Mon Sep 17 00:00:00 2001 From: kyonRay Date: Fri, 26 Jan 2024 14:09:38 +0800 Subject: [PATCH] (integration): fix TransactionManagerPayableTest bug. --- .../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; }