                 #endif
 
                 it("protect the main thread when plugin crashes in render") {
+                    let expectation = QuickSpec.current.expectation(description: "doesn't crash")
                     CorePluginMock.crashOnDestroy = true
                     let core = Core()
                     let plugin = CorePluginMock()

                #endif

                it("protect the main thread when plugin crashes in render") {
                    CorePluginMock.crashOnRender = true
                    let core = Core()
                    let plugin = CorePluginMock()


                    core.destroy()

                    expectation.fulfill()
                    QuickSpec.current.waitForExpectations(timeout: 1)
                }
            }

