Skip to content

Commit ed1adbe

Browse files
committed
test: Assert isOpen on FakeApiConnection.prepare
1 parent 26c2aa0 commit ed1adbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/api/fake_api.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ class FakeApiConnection extends ApiConnection {
228228
String? body,
229229
Duration delay = Duration.zero,
230230
}) {
231+
assert(isOpen);
231232
client.prepare(
232233
exception: exception,
233234
httpStatus: httpStatus, json: json, body: body,

0 commit comments

Comments
 (0)