1
0
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:
Aaron Piotrowski 2017-11-06 10:18:04 -06:00
parent 4ce0e715ff
commit 7a8358ee69
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -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;