From 368d6342a07ea2cf61534666b71b557ee95e1892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristupas=20Antanavi=C4=8Dius?= Date: Fri, 3 Jan 2025 18:56:11 +0200 Subject: [PATCH] Debug CI --- .../tests/bindings/test_imported_types.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fixtures/ext-types/proc-macro-lib/tests/bindings/test_imported_types.swift b/fixtures/ext-types/proc-macro-lib/tests/bindings/test_imported_types.swift index 4ab69f62a..ff1938fc7 100644 --- a/fixtures/ext-types/proc-macro-lib/tests/bindings/test_imported_types.swift +++ b/fixtures/ext-types/proc-macro-lib/tests/bindings/test_imported_types.swift @@ -48,9 +48,8 @@ assert(getMaybeUniffiOneTypes(ts: [UniffiOneType(sval: "hello"), nil]) == [Uniff print("AAAAAAAAAAAAAAAAAAAAAAA 6") fflush(stdout) -var counter = DispatchGroup() +let semaphore = DispatchSemaphore(value: 0) print("AAAAAAAAAAAAAAAAAAAAAAA 6.1") -counter.enter() print("AAAAAAAAAAAAAAAAAAAAAAA 6.2") Task { print("BBBBBBBBBBBBBBBBBBBB 1") @@ -66,11 +65,11 @@ Task { assert(uniffiOneType.sval == "hello") print("BBBBBBBBBBBBBBBBBBBB 5") - counter.leave() + semaphore.signal() print("BBBBBBBBBBBBBBBBBBBB 6") } print("AAAAAAAAAAAAAAAAAAAAAAA 6.3") -counter.wait() +semaphore.wait() print("AAAAAAAAAAAAAAAAAAAAAAA 6.4") print("AAAAAAAAAAAAAAAAAAAAAAA 7")