Skip to content

Commit

Permalink
Apply drive-by fixes to existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleasa committed Jan 4, 2024
1 parent 19836bb commit 9e52ca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/lib/auth_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ main({bool enableLogger = true}) {
tuningSettings = TuningSettings();
frameWriter = FrameWriter(tuningSettings);
server = mock.MockServer();
client = Client(settings: ConnectionSettings(port: 9000));
return server.listen('127.0.0.1', 9000);
client = Client(settings: ConnectionSettings(port: 9001));
return server.listen('127.0.0.1', 9001);
});

tearDown(() async {
Expand Down
2 changes: 1 addition & 1 deletion test/lib/mocks/server_mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class MockServer {
Future listen(String host, int port) async {
mockLogger.info("Binding MockServer to $host:$port");

_server = await ServerSocket.bind(host, port);
_server = await ServerSocket.bind(host, port, shared: true);
mockLogger.info("[$host:$port] Listening for incoming connections");
_server!.listen(_handleConnection);
}
Expand Down

0 comments on commit 9e52ca9

Please sign in to comment.