Skip to content

Commit 2d3aba1

Browse files
author
wangzihe
committed
Modify the stest case account003
1 parent 82f010d commit 2d3aba1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎src/test/java/stest/tron/wallet/account/WalletTestAccount003.java‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,15 @@ public void test1CreateAccount() {
105105
Assert.assertTrue(noCreateAccount.getBalance() == 1);
106106
}
107107

108-
@Test(enabled = false)
108+
@Test(enabled = true)
109109
public void test2UpdateAccount() {
110110
Assert.assertFalse(updateAccount(lowBalAddress,
111111
mostLongNamePlusOneChar.getBytes(), lowBalTest));
112112
//Assert.assertFalse(updateAccount(lowBalAddress, "".getBytes(), lowBalTest));
113-
Assert.assertFalse(updateAccount(lowBalAddress, mostLongName.getBytes(), lowBalTest));
113+
String mostLongName = getRandomStr(33);
114+
Assert.assertTrue(updateAccount(lowBalAddress, mostLongName.getBytes(), lowBalTest));
114115
String firstUpdateName = getRandomStr(32);
115-
Assert.assertTrue(updateAccount(lowBalAddress, firstUpdateName.getBytes(), lowBalTest));
116+
Assert.assertFalse(updateAccount(lowBalAddress, firstUpdateName.getBytes(), lowBalTest));
116117
String secondUpdateName = getRandomStr(15);
117118
Assert.assertFalse(updateAccount(lowBalAddress, secondUpdateName.getBytes(), lowBalTest));
118119
}

0 commit comments

Comments
 (0)