Update tests
This commit is contained in:
parent
a0ab8ad611
commit
0b156110f0
@ -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
|
||||||
|
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user