Skip to content

Commit

Permalink
Fix risky test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JSteitz committed Aug 29, 2018
1 parent 09fbec2 commit a5417cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/LanguageServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ public function testIndexingWithDirectFileAccess()
if ($msg->body->params->type === MessageType::ERROR) {
$promise->reject(new Exception($msg->body->params->message));
} else if (preg_match('/All \d+ PHP files parsed/', $msg->body->params->message)) {
$promise->fulfill();
$promise->fulfill(true);
}
}
});
$server = new LanguageServer($input, $output);
$capabilities = new ClientCapabilities;
$server->initialize($capabilities, realpath(__DIR__ . '/../fixtures'), getmypid(), new Options);
$promise->wait();
$this->assertTrue($promise->wait());
}

public function testIndexingWithFilesAndContentRequests()
Expand Down

0 comments on commit a5417cd

Please sign in to comment.