Skip to content

Commit

Permalink
StringComparison
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgodbe committed Dec 19, 2024
1 parent 99ba38c commit b50f4bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Testing/src/xunit/SkipOnHelixAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ private bool ShouldSkip()

// We have "QueueName" and "QueueName.Open" queues for internal and public builds
// If we want to skip the test in the public queue, we want to skip it in the internal queue, and vice versa
return Queues.ToLowerInvariant().Split(';').Any(q => q.Equals(targetQueue) || q.StartsWith(targetQueue) || targetQueue.StartsWith(q));
return Queues.ToLowerInvariant().Split(';').Any(q => q.Equals(targetQueue, StringComparison.Ordinal) || q.StartsWith(targetQueue, StringComparison.Ordinal) ||
targetQueue.StartsWith(q, StringComparison.Ordinal));
}

public static bool OnHelix() => HelixHelper.OnHelix();
Expand Down

0 comments on commit b50f4bb

Please sign in to comment.