Skip to content

Commit ff7f7e8

Browse files
committed
Reset the server port to zero
1 parent 40609bc commit ff7f7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/http/test/stub_server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:stream_channel/stream_channel.dart';
1212

1313
void hybridMain(StreamChannel<dynamic> channel) async {
1414
var numOfRequests = 0;
15-
final server = await HttpServer.bind('localhost', 63618);
15+
final server = await HttpServer.bind('localhost', 0);
1616
final url = Uri.http('localhost:${server.port}', '');
1717
server.listen((request) async {
1818
var path = request.uri.path;

0 commit comments

Comments
 (0)