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 @BeforeAll
static void initAll() { static void initAll() {
acClient = new AccountingChainClient("47.92.69.234", 18080); acClient = new AccountingChainClient("localhost", 10001);
// acClient = new AccountingChainClient("localhost", 10001);
} }
@Test @Test

View File

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