Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/__tests__/PhutilDeferredLogTestCase.php
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | try { | ||||
} | } | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
$caught = $ex; | $caught = $ex; | ||||
} | } | ||||
$this->assertTrue($caught instanceof Exception); | $this->assertTrue($caught instanceof Exception); | ||||
} | } | ||||
public function testManyWriters() { | public function testManyWriters() { | ||||
$root = phutil_get_library_root('phutil').'/../'; | $root = phutil_get_library_root('arcanist').'/../'; | ||||
$bin = $root.'scripts/test/deferred_log.php'; | $bin = $root.'support/unit/deferred_log.php'; | ||||
$n_writers = 3; | $n_writers = 3; | ||||
$n_lines = 8; | $n_lines = 8; | ||||
$tmp = new TempFile(); | $tmp = new TempFile(); | ||||
$futures = array(); | $futures = array(); | ||||
for ($ii = 0; $ii < $n_writers; $ii++) { | for ($ii = 0; $ii < $n_writers; $ii++) { | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |