Skip to content

Commit ce9e9bd

Browse files
Merge pull request tronprotocol#2203 from tronprotocol/add_http_stest_case
modify dailybuild error
2 parents cbb1131 + c3ce6a7 commit ce9e9bd

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎src/test/java/stest/tron/wallet/dailybuild/grammar/ContractGrammar001.java‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ public void test2Grammar002() {
148148
String abi1 = retMap1.get("abI").toString();
149149
String library = retMap1.get("library").toString();
150150
String libraryAddress = library + Base58.encode58Check(contractAddress);
151-
// "/Users/tron/dev/git/20190225Tron/java-tron/src/test/resources/soliditycode/contractGrammar001test2Grammar002.sol:Set:"
152-
// + Base58.encode58Check(contractAddress);
153151
contractAddress1 = PublicMethed
154152
.deployContractForLibrary(contractName1, abi1, code1, "", maxFeeLimit,
155153
0L, 100, libraryAddress, testKeyForGrammarAddress,
@@ -186,7 +184,6 @@ public void test3Grammar003() {
186184
String abi1 = retMap1.get("abI").toString();
187185
String library = retMap1.get("library").toString();
188186
String libraryAddress = library
189-
//"/Users/tron/dev/git/20190225Tron/java-tron/src/test/resources/soliditycode/contractGrammar001test3Grammar003.sol:Set:"
190187
+ Base58.encode58Check(contractAddress);
191188
contractAddress1 = PublicMethed
192189
.deployContractForLibrary(contractName1, abi1, code1, "", maxFeeLimit,
@@ -233,7 +230,6 @@ public void test4Grammar004() {
233230
String library = retMap1.get("library").toString();
234231
String libraryAddress = null;
235232
libraryAddress = library
236-
// "/Users/tron/dev/git/20190225Tron/java-tron/src/test/resources/soliditycode/contractGrammar001test4Grammar004.sol:Search:"
237233
+ Base58.encode58Check(contractAddress);
238234
contractAddress1 = PublicMethed
239235
.deployContractForLibrary(contractName1, abi1, code1, "", maxFeeLimit,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public void test03TriggerContract() {
532532
.getTransactionInfoById(triggerTxid, blockingStubFull);
533533
Assert.assertTrue(infoById.get().getResultValue() != 0);
534534
Assert.assertEquals(FAILED, infoById.get().getResult());
535-
Assert.assertEquals("BigInteger out of long range",
535+
Assert.assertEquals("endowment out of long range",
536536
infoById.get().getResMessage().toStringUtf8());
537537

538538
Assert.assertTrue(PublicMethed.freezeBalanceForReceiver(fromAddress,
@@ -554,7 +554,7 @@ public void test03TriggerContract() {
554554
.getTransactionInfoById(triggerTxid, blockingStubFull);
555555
Assert.assertTrue(infoById.get().getResultValue() != 0);
556556
Assert.assertEquals(FAILED, infoById.get().getResult());
557-
Assert.assertEquals("BigInteger out of long range",
557+
Assert.assertEquals("endowment out of long range",
558558
infoById.get().getResMessage().toStringUtf8());
559559

560560
accountResource = PublicMethed.getAccountResource(dev001Address, blockingStubFull);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ public void testDeployTransferTokenContract() {
261261

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

267268
Long transferAssetAfter = PublicMethed.getAssetIssueValue(transferTokenContractAddress,

0 commit comments

Comments
 (0)