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 =
|
const jsonRequestString =
|
||||||
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
|
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
|
||||||
|
|
||||||
expect(
|
await expectLater(
|
||||||
() => jsonRPC.request(
|
jsonRPC.request(
|
||||||
jsonRequestString,
|
jsonRequestString,
|
||||||
const Duration(seconds: 1),
|
const Duration(seconds: 1),
|
||||||
),
|
),
|
||||||
throwsA(isA<SocketException>()));
|
throwsA(isA<Exception>()
|
||||||
|
.having((e) => e.toString(), 'message', contains("Request timeout"))),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue