Skip to content

Commit e74e7ad

Browse files
committed
Fixed URL formatting to include port number in testHostUrl
1 parent 5e6debc commit e74e7ad

File tree

1 file changed

+1
-1
lines changed
  • src/System.Private.ServiceModel/tools/SelfHostedWcfService

1 file changed

+1
-1
lines changed

src/System.Private.ServiceModel/tools/SelfHostedWcfService/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private static void Main()
4141
TestDefinitionHelper.StartHosts();
4242

4343
//Start the crlUrl service last as the client use it to ensure all services have been started
44-
Uri testHostUrl = new Uri(string.Format("http://localhost/TestHost.svc", s_httpPort));
44+
Uri testHostUrl = new Uri(string.Format("http://localhost:{0}/TestHost.svc", s_httpPort));
4545
WebServiceHost host = new WebServiceHost(typeof(TestHost), testHostUrl);
4646
WebHttpBinding binding = new WebHttpBinding();
4747
host.AddServiceEndpoint(typeof(ITestHost), binding, "");

0 commit comments

Comments
 (0)