Skip to content

Commit 8bbfd8f

Browse files
author
wangzihe
committed
Merge branch 'add_http_stest_case' of https://github.com/tronprotocol/java-tron into add_http_stest_case
2 parents 470a2ab + 86acc3a commit 8bbfd8f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/java/stest/tron/wallet/dailybuild/trctoken/ContractTrcToken076.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ public void testDeployTransferTokenContract() {
9191
grammarAddress, blockingStubFull);
9292
PublicMethed.waitProduceNextBlock(blockingStubFull);
9393
PublicMethed.waitProduceNextBlock(blockingStubFull);
94+
PublicMethed.triggerContract(contractAddress,
95+
"test()", "#", false,
96+
0, maxFeeLimit, grammarAddress, testKeyForGrammarAddress, blockingStubFull);
97+
PublicMethed.waitProduceNextBlock(blockingStubFull);
98+
PublicMethed.waitProduceNextBlock(blockingStubFull);
9499

95100
String txid = "";
96101
txid = PublicMethed.triggerContract(contractAddress,
@@ -105,7 +110,7 @@ public void testDeployTransferTokenContract() {
105110
Long returnnumber = ByteArray.toLong(ByteArray.fromHexString(ByteArray.toHexString(
106111
infoById.get().getContractResult(0).toByteArray())));
107112

108-
Assert.assertTrue(returnnumber == 0);
113+
Assert.assertTrue(returnnumber == 1);
109114

110115
txid = PublicMethed.triggerContract(contractAddress,
111116
"getResult2()", "#", false,
@@ -120,7 +125,7 @@ public void testDeployTransferTokenContract() {
120125
Long returnnumber2 = ByteArray.toLong(ByteArray.fromHexString(
121126
ByteArray.toHexString(infoById.get().getContractResult(0).toByteArray())));
122127

123-
Assert.assertTrue(returnnumber2 == 0);
128+
Assert.assertTrue(returnnumber2 == 1);
124129
}
125130

126131
/**

0 commit comments

Comments
 (0)