Commit da78cb6c authored by Maks Orlovich's avatar Maks Orlovich Committed by Commit Bot

URLRequestTest.SameSiteCookiesSpecialScheme: don't try to specify port

It may not be available, making the test flake.

Bug: 1135894
Change-Id: I5b4a2db692c7bc25c39d8eea0776e6fdb447982f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2456290Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Maksim Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814709}
parent 5fa49028
......@@ -2474,8 +2474,8 @@ TEST_F(URLRequestTest, SameSiteCookiesSpecialScheme) {
ASSERT_TRUE(https_test_server.Start());
EmbeddedTestServer http_test_server(EmbeddedTestServer::TYPE_HTTP);
RegisterDefaultHandlers(&http_test_server);
// Ensure they are on different ports.
ASSERT_TRUE(http_test_server.Start(https_test_server.port() + 1));
ASSERT_TRUE(http_test_server.Start());
ASSERT_NE(https_test_server.port(), http_test_server.port());
// Both hostnames should be 127.0.0.1 (so that we can use the same set of
// cookies on both, for convenience).
ASSERT_EQ(https_test_server.host_port_pair().host(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment