Skip to content

Commit

Permalink
Run tests depending on feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
devklick committed Aug 16, 2024
1 parent 7c14ab7 commit 842727b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Lucene.Net.Tests/Support/QueueExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace Lucene.Net

public class QueueExtensionsTests : LuceneTestCase
{
#if !FEATURE_QUEUE_TRYDEQUEUE_TRYPEEK
[Test, LuceneNetSpecific]
public void TryDequeue_ThrowsWhenQueueNull()
{
Expand Down Expand Up @@ -87,5 +88,7 @@ public void TryPeek_QueueNotEmpty()
Assert.That(result, Is.EqualTo(item));
Assert.That(queue.Count, Is.EqualTo(countBefore));
}

#endif
}
}

0 comments on commit 842727b

Please sign in to comment.