Index: pkg/http/test/utils.dart |
diff --git a/pkg/http/test/utils.dart b/pkg/http/test/utils.dart |
index a3960975ecb3387139b70588e66ffb3029a96c9a..6bbe139a7adbc856d7ec3b1b9603f67a225342c3 100644 |
--- a/pkg/http/test/utils.dart |
+++ b/pkg/http/test/utils.dart |
@@ -13,6 +13,7 @@ import 'package:unittest/unittest.dart'; |
import '../lib/src/byte_stream.dart'; |
import '../lib/http.dart' as http; |
import '../lib/src/utils.dart'; |
+import 'safe_http_server.dart'; |
/// The current server instance. |
HttpServer _server; |
@@ -25,7 +26,7 @@ Uri get dummyUrl => Uri.parse('http://dartlang.org/'); |
/// Starts a new HTTP server. |
Future startServer() { |
- return HttpServer.bind("127.0.0.1", 0).then((s) { |
+ return SafeHttpServer.bind("127.0.0.1", 0).then((s) { |
_server = s; |
s.listen((request) { |
var path = request.uri.path; |