mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
patch json request test
This commit is contained in:
parent
3c8e220303
commit
0ff37d1e3e
1 changed files with 8 additions and 6 deletions
|
@ -55,11 +55,13 @@ void main() {
|
|||
const jsonRequestString =
|
||||
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
|
||||
|
||||
expect(
|
||||
() => jsonRPC.request(
|
||||
jsonRequestString,
|
||||
const Duration(seconds: 1),
|
||||
),
|
||||
throwsA(isA<SocketException>()));
|
||||
await expectLater(
|
||||
jsonRPC.request(
|
||||
jsonRequestString,
|
||||
const Duration(seconds: 1),
|
||||
),
|
||||
throwsA(isA<Exception>()
|
||||
.having((e) => e.toString(), 'message', contains("Request timeout"))),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue