Index: tests/standalone/io/http_requested_uri_test.dart |
diff --git a/tests/standalone/io/http_requested_uri_test.dart b/tests/standalone/io/http_requested_uri_test.dart |
index f573c03fee3a06379fa3da79788cd5aa80aeb28f..03db1083d633eec095fe737dbc78a429183d8bfd 100644 |
--- a/tests/standalone/io/http_requested_uri_test.dart |
+++ b/tests/standalone/io/http_requested_uri_test.dart |
@@ -7,19 +7,20 @@ import "package:async_helper/async_helper.dart"; |
import "dart:async"; |
import "dart:io"; |
-const PATH = '/path?a=b#c'; |
+const sendPath = '/path?a=b#c'; |
+const expectedPath = '/path?a=b'; |
void test(String expected, Map headers) { |
asyncStart(); |
HttpServer.bind("localhost", 0).then((server) { |
expected = expected.replaceAll('%PORT', server.port.toString()); |
server.listen((request) { |
- Expect.equals("$expected$PATH", |
+ Expect.equals("$expected$expectedPath", |
request.requestedUri.toString()); |
request.response.close(); |
}); |
HttpClient client = new HttpClient(); |
- client.get("localhost", server.port, PATH) |
+ client.get("localhost", server.port, sendPath) |
.then((request) { |
for (var v in headers.keys) { |
if (headers[v] != null) { |