Skip to content

Commit 3fa4041

Browse files
committed
Fix certain issues of TestInfo
1 parent adc56c0 commit 3fa4041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orm/Xtensive.Orm.Tests.Framework/TestInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ private static IEnumerable<T> GetMethodAttributes<T>() where T : Attribute
108108
static TestInfo()
109109
{
110110
isBuildServer = Environment.GetEnvironmentVariable("TEAMCITY_VERSION") != null;
111-
isGithubActions = Environment.GetEnvironmentVariable("GITHUB_WORKSPACE").Equals("true", StringComparison.OrdinalIgnoreCase);
112-
noIgnoreOnGithubActions = isGithubActions && Environment.GetEnvironmentVariable("GA_NO_IGNORE").Equals("true", StringComparison.OrdinalIgnoreCase);
111+
isGithubActions = string.Equals(Environment.GetEnvironmentVariable("GITHUB_WORKSPACE"), "true", StringComparison.OrdinalIgnoreCase);
112+
noIgnoreOnGithubActions = isGithubActions && string.Equals(Environment.GetEnvironmentVariable("GA_NO_IGNORE"), "true", StringComparison.OrdinalIgnoreCase);
113113
githubActionsTriggeredBy = TryParseGithubEventName(Environment.GetEnvironmentVariable("GITHUB_EVENT_NAME"));
114114
}
115115
}

0 commit comments

Comments
 (0)