Skip to content

Commit 1d15458

Browse files
committed
Add waiting time for stest case
1 parent 460bc00 commit 1d15458

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

framework/src/test/java/stest/tron/wallet/dailybuild/http/HttpTestSendCoin001.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public void test2GetTransactionByIdFromSolidity() {
6868
public void test3GetTransactionInfoByIdFromSolidity() {
6969
String txid = HttpMethed.sendCoinGetTxid(httpnode, fromAddress, receiverAddress, amount,
7070
testKey002);
71+
HttpMethed.waitToProduceOneBlock(httpnode);
7172
HttpMethed.waitToProduceOneBlockFromSolidity(httpnode, httpSoliditynode);
7273

7374
response = HttpMethed.getTransactionInfoByIdFromSolidity(httpSoliditynode, txid);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,11 @@ public void testInternalTransaction018() {
536536
} else if (infoById.get().getResultValue() == 1) {
537537
Assert.assertEquals(FAILED, infoById.get().getResult());
538538
Assert
539-
.assertEquals(ByteArray.toHexString(infoById.get().getContractResult(0).toByteArray()),
539+
.assertEquals(infoById.get().getContractResult(0).toStringUtf8(),
540540
"");
541541
Assert.assertEquals(contractResult.OUT_OF_TIME, infoById.get().getReceipt().getResult());
542542
Assert.assertEquals("CPU timeout for 'PUSH1' operation executing",
543-
ByteArray.toHexString(infoById.get().getResMessage().toByteArray()));
543+
infoById.get().getResMessage().toStringUtf8());
544544
}
545545
}
546546

framework/src/test/java/stest/tron/wallet/dailybuild/zentrc20token/HttpShieldTrc20Token002.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void test04ShiledTrc20BurnByHttp() {
145145
.getString("trigger_contract_input"),maxFeeLimit,0L,0,0L,
146146
zenTrc20TokenOwnerKey);
147147

148-
148+
HttpMethed.waitToProduceOneBlock(httpnode);
149149
HttpMethed.waitToProduceOneBlock(httpnode);
150150
response = HttpMethed.getTransactionInfoById(httpnode,txid,true);
151151
responseContent = HttpMethed.parseResponseContent(response);

framework/src/test/java/stest/tron/wallet/dailybuild/zentrc20token/HttpShieldTrc20Token003.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void prepareForTransfer() {
6565
.getString("trigger_contract_input"),maxFeeLimit,0L,0,0L,
6666
zenTrc20TokenOwnerKey);
6767
HttpMethed.waitToProduceOneBlock(httpnode);
68-
68+
HttpMethed.waitToProduceOneBlock(httpnode);
6969

7070
shieldedReceives.clear();
7171
shieldedReceives = getHttpShieldedReceivesJsonArray(shieldedReceives,publicFromAmount,
@@ -146,7 +146,7 @@ public void test02TransferTypeWith1V2ByHttp() {
146146
zenTrc20TokenOwnerAddressString,shieldAddress,transfer,responseContent
147147
.getString("trigger_contract_input"),maxFeeLimit,0L,0,0L,
148148
zenTrc20TokenOwnerKey);
149-
149+
HttpMethed.waitToProduceOneBlock(httpnode);
150150
HttpMethed.waitToProduceOneBlock(httpnode);
151151
response = HttpMethed.getTransactionInfoById(httpnode,txid,true);
152152
responseContent = HttpMethed.parseResponseContent(response);
@@ -191,7 +191,7 @@ public void test03TransferTypeWith2V2ByHttp() {
191191
zenTrc20TokenOwnerAddressString,shieldAddress,transfer,responseContent
192192
.getString("trigger_contract_input"),maxFeeLimit,0L,0,0L,
193193
zenTrc20TokenOwnerKey);
194-
194+
HttpMethed.waitToProduceOneBlock(httpnode);
195195
HttpMethed.waitToProduceOneBlock(httpnode);
196196
response = HttpMethed.getTransactionInfoById(httpnode,txid,true);
197197
responseContent = HttpMethed.parseResponseContent(response);

framework/src/test/java/stest/tron/wallet/dailybuild/zentrc20token/HttpShieldTrc20Token005.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void test04ShiledTrc20BurnToOnePublicAndOneShieldByHttp() {
102102
.getString("trigger_contract_input"),maxFeeLimit,0L,0,0L,
103103
zenTrc20TokenOwnerKey);
104104

105-
105+
HttpMethed.waitToProduceOneBlock(httpnode);
106106
HttpMethed.waitToProduceOneBlock(httpnode);
107107
response = HttpMethed.getTransactionInfoById(httpnode,txid,true);
108108
responseContent = HttpMethed.parseResponseContent(response);
@@ -166,7 +166,7 @@ public void test05ShiledTrc20BurnWithoutAskToOnePublicAndOneShieldByHttp() {
166166
.getString("value"),maxFeeLimit,0L,0,0L,
167167
zenTrc20TokenOwnerKey);
168168

169-
169+
HttpMethed.waitToProduceOneBlock(httpnode);
170170
HttpMethed.waitToProduceOneBlock(httpnode);
171171
response = HttpMethed.getTransactionInfoById(httpnode,txid,true);
172172
responseContent = HttpMethed.parseResponseContent(response);

0 commit comments

Comments
 (0)