Skip to content

Commit

Permalink
Use staging server to test
Browse files Browse the repository at this point in the history
  • Loading branch information
rzikm committed Jan 14, 2025
1 parent d897415 commit 43d3e3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libraries/Common/tests/System/Net/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ namespace System.Net.Test.Common
{
public static partial class Configuration
{
#pragma warning disable 414
private static readonly string DefaultAzureServer = "corefx-net-http11.azurewebsites.net";
#pragma warning restore 414
#pragma warning disable 414
private static readonly string DefaultAzureServer = "corefx-net-http11-staging.azurewebsites.net";
#pragma warning restore 414

private static string GetValue(string envName, string defaultValue=null)
private static string GetValue(string envName, string defaultValue = null)
{
string envValue = Environment.GetEnvironmentVariable(envName);

Expand All @@ -32,15 +32,15 @@ private static int GetPortValue(string envName, int defaultValue)
envValue = Environment.ExpandEnvironmentVariables(envValue);

var split = envValue.Split(':');
if (split.Length<2)
if (split.Length < 2)
{
return defaultValue;
}

return int.Parse(split[1]);
}

private static Uri GetUriValue(string envName, Uri defaultValue=null)
private static Uri GetUriValue(string envName, Uri defaultValue = null)
{
string envValue = GetValue(envName, null);

Expand Down

0 comments on commit 43d3e3d

Please sign in to comment.