Update tests

This commit is contained in:
Nex 2019-04-23 21:36:03 +08:00
parent a0ab8ad611
commit 0b156110f0
2 changed files with 3 additions and 4 deletions

View File

@ -103,8 +103,7 @@ class AccountingChainClientTests {
@BeforeAll
static void initAll() {
acClient = new AccountingChainClient("47.92.69.234", 18080);
// acClient = new AccountingChainClient("localhost", 10001);
acClient = new AccountingChainClient("localhost", 10001);
}
@Test

View File

@ -73,7 +73,7 @@ class TransactionLedgerClientTests {
.get()
.getHash()
.toByteArray());
assertEquals("d15ea5edd15ea5edd15ea5edd15ea5edd15ea5edd15ea5edd15ea5edd15ea5ed", hash);
assertEquals("d15ea5edd15ea5edd15ea5edd15ea5edd15ea5ed", hash);
}
@Test
@ -84,7 +84,7 @@ class TransactionLedgerClientTests {
Exception.class,
() ->
tlClient
.sendTransaction(ledger, TransactionType.MESSAGE, null, "50bada55", null)
.sendTransaction(ledger, TransactionType.MESSAGE, null, "50bada5550bada5550bada5550bada5550bada55", null)
.get());
Status s = Status.fromThrowable(e);
assertEquals(Status.Code.INVALID_ARGUMENT, s.getCode());