         let message = "🚫"
 
         // when
-        dispatch { die(message) }
-        spinMainQueue(1)
+        dispatchAndWaitForDie(timeout: 2) { die(message) }
 
         // then
         XCTAssertEqual(callCount, 1)

        var solution: Int?

        // when
        dispatch {
            solution = dieOnThrow {
                return 42
            }
        }

        spinMainQueue(1)

        // then
        XCTAssertEqual(callCount, 0)


    func testThatItCallsDie() {
        // when
        dispatchAndWaitForDie(timeout: 2, block: die)

        // then
        XCTAssertEqual(callCount, 1)
