public function testRaceFailure() { $this->setExpectedException(CURLException::class, 'Error[B]'); $r = Co::wait(Co::race([new DummyCurl('A', 3), new DummyCurl('B', 2, true)])); }