Skip to content

Commit

Permalink
add test for open/close connection - Issue #83
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1u committed Oct 23, 2023
1 parent e296944 commit 23af8c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/close_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ main() {
await cmd.get_connection().close();
//expect(cmd.send_object("GARBAGE"), throwsA(isRedisError));
});

test("Open/Close in loop", () async {
for( int i=0;i<1000;++i) {
Command cmd = await generate_connect();
await cmd.send_object(["SET", "test", "0"]);
await cmd.get_connection().close();
}
});
});
}

Expand Down

0 comments on commit 23af8c6

Please sign in to comment.