From ead0916a2f4a0b3e8c601ad73ea16019916c2115 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Wed, 8 Sep 2021 11:47:47 -0700 Subject: [PATCH] [Heap] Disable heap tests in release builds (#100) These tests rely on @testable imports, which sadly won't work in optimized builds. --- Tests/PriorityQueueTests/HeapTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/PriorityQueueTests/HeapTests.swift b/Tests/PriorityQueueTests/HeapTests.swift index 880e0c8a6..ca3268580 100644 --- a/Tests/PriorityQueueTests/HeapTests.swift +++ b/Tests/PriorityQueueTests/HeapTests.swift @@ -9,6 +9,7 @@ // //===----------------------------------------------------------------------===// +#if DEBUG import XCTest @testable import PriorityQueueModule @@ -419,3 +420,4 @@ final class HeapTests: XCTestCase { } } } +#endif