Skip to content

Commit 99ba38c

Browse files
committed
Skip tests on internal too
1 parent 1d71af1 commit 99ba38c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Testing/src/xunit/SkipOnHelixAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ private bool ShouldSkip()
6666
return true;
6767
}
6868

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

7274
public static bool OnHelix() => HelixHelper.OnHelix();

0 commit comments

Comments
 (0)