Skip to content

Commit e1bd02f

Browse files
Merge pull request tronprotocol#2185 from tronprotocol/add_http_stest_case
fix dailybuild error
2 parents ed82995 + 0bd5672 commit e1bd02f

6 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎src/test/java/stest/tron/wallet/dailybuild/internaltransaction/ContractInternalTransaction003.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ public void testInternalTransaction018() {
513513
PublicMethed.waitProduceNextBlock(blockingStubFull);
514514
Optional<TransactionInfo> infoById = null;
515515
infoById = PublicMethed.getTransactionInfoById(txid, blockingStubFull);
516+
logger.info("InfoById:" + infoById);
516517
Assert.assertTrue(infoById.get().getResultValue() == 0);
517518
int transactionsCount = infoById.get().getInternalTransactionsCount();
518519
Assert.assertEquals(184, transactionsCount);

‎src/test/java/stest/tron/wallet/dailybuild/multisign/MultiSign01.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ public void testOwnerName09() {
752752
Assert.assertTrue(PublicMethedForMutiSign.accountPermissionUpdate(accountPermissionJson,
753753
ownerAddress, ownerKey, blockingStubFull,
754754
ownerPermissionKeys.toArray(new String[ownerPermissionKeys.size()])));
755-
755+
PublicMethed.waitProduceNextBlock(blockingStubFull);
756756
Long balanceAfter = PublicMethed.queryAccount(ownerAddress, blockingStubFull)
757757
.getBalance();
758758
logger.info("balanceAfter: " + balanceAfter);

‎src/test/java/stest/tron/wallet/dailybuild/multisign/MultiSign11.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ public void testActiveAddress10() {
894894
+ "{\"address\":\"" + PublicMethed.getAddressString(tmpKey02) + "\",\"weight\":2},"
895895
+ "{\"address\":\"" + PublicMethed.getAddressString(tmpKey01) + "\",\"weight\":3}"
896896
+ "]}]}";
897+
PublicMethed.waitProduceNextBlock(blockingStubFull);
897898
Assert.assertTrue(PublicMethedForMutiSign.accountPermissionUpdate(accountPermissionJson,
898899
ownerAddress, ownerKey, blockingStubFull,
899900
ownerPermissionKeys.toArray(new String[ownerPermissionKeys.size()])));

‎src/test/java/stest/tron/wallet/dailybuild/multisign/MultiSign32.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public void testMultiSignAddDupAssressOwner() {
117117
.accountPermissionUpdateWithPermissionId(accountPermissionJson1, test001Address, dev001Key,
118118
blockingStubFull, 0,
119119
permissionKeyString));
120+
PublicMethed.waitProduceNextBlock(blockingStubFull);
120121

121122
Account test001AddressAccount1 = PublicMethed.queryAccount(test001Address, blockingStubFull);
122123
List<Permission> permissionsList1 = test001AddressAccount1.getActivePermissionList();

‎src/test/java/stest/tron/wallet/dailybuild/trctoken/ContractTrcToken014.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public void test03TriggerContract() {
380380
"transferTokenTest(address,uint256,trcToken)", param, false, callValue,
381381
1000000000L, assetAccountId.toStringUtf8(), 2, user001Address, user001Key,
382382
blockingStubFull);
383-
383+
PublicMethed.waitProduceNextBlock(blockingStubFull);
384384
infoById = PublicMethed
385385
.getTransactionInfoById(triggerTxid, blockingStubFull);
386386

‎src/test/java/stest/tron/wallet/dailybuild/trctoken/ContractTrcToken018.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ public void testDeployTransferTokenContract() {
260260
logger.info("Trigger energytotal is " + infoById.get().getReceipt().getEnergyUsageTotal());
261261

262262
Assert.assertEquals(FAILED, infoById.get().getResult());
263-
Assert.assertEquals("validateForSmartContract failure",
263+
Assert.assertEquals(
264+
"transfer trc10 failed: Validate InternalTransfer error, no ToAccount. And not allowed to create account in smart contract.",
264265
infoById.get().getResMessage().toStringUtf8());
265266

266267
Long transferAssetAfter = PublicMethed.getAssetIssueValue(transferTokenContractAddress,

0 commit comments

Comments
 (0)