Skip to content

Commit d909382

Browse files
committed
streamlined some of the test assertions
1 parent 4416d0d commit d909382

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/connection/AConnectionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ public function testMillisecondTimeout(string $alias): void
3737
$protocol->run('FOREACH ( i IN range(1,10000) |
3838
MERGE (d:Day {day: i})
3939
)');
40+
$this->fail('No timeout error triggered');
4041
} catch (ConnectionTimeoutException $e) {
4142
$newTime = microtime(true);
4243

4344
$this->assertEqualsWithDelta(1.5, $newTime - $time, 0.2);
4445
}
45-
46-
self::assertTrue(true);
4746
}
4847

4948
/**
@@ -99,7 +98,6 @@ public function testTimeoutRecoverAndReset(string $alias): void
9998
$protocol = (new Bolt($streamSocket))->build();
10099
$protocol->hello(Auth::basic($GLOBALS['NEO_USER'], $GLOBALS['NEO_PASS']));
101100
}
102-
$this->assertTrue(true);
103101

104102
$streamSocket->setTimeout(1.0);
105103

0 commit comments

Comments
 (0)