 
                     core.render()
 
-                    expect(core).to(beAKindOf(Core.self))
+                    expectation.fulfill()
+                    QuickSpec.current.waitForExpectations(timeout: 1)
                 }
             }
 

                #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)
                }
            }

