mirror of
https://github.com/danog/postgres.git
synced 2024-11-26 20:15:02 +01:00
Swap test query order
Temp fix for travis issues.
This commit is contained in:
parent
4ce0e715ff
commit
7a8358ee69
@ -295,7 +295,7 @@ abstract class AbstractLinkTest extends TestCase {
|
||||
/**
|
||||
* @depends testSimultaneousQuery
|
||||
*/
|
||||
public function testSimultaneousQueryWithFirstFailing() {
|
||||
public function testSimultaneousQueryWithOneFailing() {
|
||||
$callback = \Amp\coroutine(function ($query) {
|
||||
/** @var \Amp\Postgres\TupleResult $result */
|
||||
$result = yield $this->connection->query($query);
|
||||
@ -313,8 +313,8 @@ abstract class AbstractLinkTest extends TestCase {
|
||||
|
||||
try {
|
||||
Loop::run(function () use (&$result, $callback) {
|
||||
$failing = $callback("SELECT & FROM test");
|
||||
$successful = $callback("SELECT * FROM test");
|
||||
$failing = $callback("SELECT & FROM test");
|
||||
|
||||
$result = yield $successful;
|
||||
yield $failing;
|
||||
|
Loading…
Reference in New Issue
Block a user