Skip to content

Commit cacecc6

Browse files
committed
fix: update http2 test
1 parent 5827345 commit cacecc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnitTest/ProxyServerTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public async void TestCase3_HttpV2()
100100
Proxy = new ProxyServerConfig
101101
{
102102
Host = "127.0.0.1",
103-
Port = new List<int> {80},
103+
Port = new List<int> {1080},
104104
TimeToAlive = 2
105105
}
106106
};
@@ -113,9 +113,9 @@ public async void TestCase3_HttpV2()
113113
DefaultVersionPolicy = HttpVersionPolicy.RequestVersionOrHigher
114114
};
115115

116-
httpClient.DefaultRequestHeaders.Host = "ce.markop.ir";
116+
httpClient.DefaultRequestHeaders.Host = "http2.markop.ir";
117117

118-
var httpResponseMessage = await httpClient.GetAsync("http://127.0.0.1:80", cancellationToken.Token);
118+
var httpResponseMessage = await httpClient.GetAsync("http://127.0.0.1:1080", cancellationToken.Token);
119119

120120
Assert.True(httpResponseMessage.IsSuccessStatusCode);
121121

0 commit comments

Comments
 (0)