From 842727b2e4726ed102b3524c68ac572a994e7130 Mon Sep 17 00:00:00 2001 From: devklick Date: Fri, 16 Aug 2024 21:04:09 +0100 Subject: [PATCH] Run tests depending on feature flag --- src/Lucene.Net.Tests/Support/QueueExtensionsTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Lucene.Net.Tests/Support/QueueExtensionsTests.cs b/src/Lucene.Net.Tests/Support/QueueExtensionsTests.cs index 274fba43b4..fa66f99353 100644 --- a/src/Lucene.Net.Tests/Support/QueueExtensionsTests.cs +++ b/src/Lucene.Net.Tests/Support/QueueExtensionsTests.cs @@ -28,6 +28,7 @@ namespace Lucene.Net public class QueueExtensionsTests : LuceneTestCase { +#if !FEATURE_QUEUE_TRYDEQUEUE_TRYPEEK [Test, LuceneNetSpecific] public void TryDequeue_ThrowsWhenQueueNull() { @@ -87,5 +88,7 @@ public void TryPeek_QueueNotEmpty() Assert.That(result, Is.EqualTo(item)); Assert.That(queue.Count, Is.EqualTo(countBefore)); } + +#endif } }