Skip to content

Commit f6b4eaa

Browse files
Merge pull request tronprotocol#2509 from tronprotocol/develop_modifytestcase
modify testcase
2 parents 3cbc716 + e73f46b commit f6b4eaa

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/test/java/stest/tron/wallet/dailybuild/manual/ContractScenario014.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void testTripleTrigger() {
8080
PublicMethed.printAddress(contract014Key);
8181
PublicMethed.printAddress(receiverKey);
8282

83-
Assert.assertTrue(PublicMethed.sendcoin(contract014Address, 5000000000000L, fromAddress,
83+
Assert.assertTrue(PublicMethed.sendcoin(contract014Address, 50_000_000_000L, fromAddress,
8484
testKey002, blockingStubFull));
8585
Assert.assertTrue(PublicMethed
8686
.freezeBalanceGetEnergy(contract014Address, 1000000000000L, 0, 1, priKey014,

src/test/java/stest/tron/wallet/dailybuild/multisign/MultiSign26.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ public void testMultiUpdatepermissions_AfterSign() {
823823
.accountPermissionUpdateWithPermissionId(accountPermissionJson2, test001Address, dev001Key,
824824
blockingStubFull, 0,
825825
permissionKeyString));
826+
PublicMethed.waitProduceNextBlock(blockingStubFull);
826827

827828
Account test001AddressAccount2 = PublicMethed.queryAccount(test001Address, blockingStubFull);
828829
List<Permission> permissionsList2 = test001AddressAccount2.getActivePermissionList();

src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/isContract/isContractCommand001.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,12 @@ public class isContractCommand001 {
4343
private WalletGrpc.WalletBlockingStub blockingStubFull1 = null;
4444

4545

46-
private WalletSolidityGrpc.WalletSolidityBlockingStub blockingStubSolidity = null;
4746

4847
private String fullnode = Configuration.getByPath("testng.conf")
4948
.getStringList("fullnode.ip.list").get(0);
5049
private String fullnode1 = Configuration.getByPath("testng.conf")
5150
.getStringList("fullnode.ip.list").get(1);
5251

53-
private String soliditynode = Configuration.getByPath("testng.conf")
54-
.getStringList("solidityNode.ip.list").get(0);
5552
byte[] contractAddress = null;
5653

5754
ECKey ecKey1 = new ECKey(Utils.getRandom());
@@ -83,12 +80,8 @@ public void beforeClass() {
8380
.build();
8481
blockingStubFull1 = WalletGrpc.newBlockingStub(channelFull1);
8582

86-
channelSolidity = ManagedChannelBuilder.forTarget(soliditynode)
87-
.usePlaintext(true)
88-
.build();
89-
blockingStubSolidity = WalletSolidityGrpc.newBlockingStub(channelSolidity);
9083
PublicMethed
91-
.sendcoin(contractExcAddress, 10000000000L, testNetAccountAddress, testNetAccountKey,
84+
.sendcoin(contractExcAddress, 1000_000_000L, testNetAccountAddress, testNetAccountKey,
9285
blockingStubFull);
9386
PublicMethed.waitProduceNextBlock(blockingStubFull);
9487
String filePath = "src/test/resources/soliditycode/TvmIsContract001.sol";

0 commit comments

Comments
 (0)