Skip to content

Commit

Permalink
Merge f8346df into 7bfe9bd
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Nov 28, 2020
2 parents 7bfe9bd + f8346df commit 4cd5cec
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/EventStoreConnectionTestCase.php
Expand Up @@ -31,7 +31,7 @@ protected function setUpAsync(): Generator

protected function tearDownAsync(): Generator
{
//$this->connection->close();
$this->connection->close();

yield new Success();
}
Expand Down
Expand Up @@ -96,6 +96,13 @@ protected function when(): Generator
);
}

protected function end(): Generator
{
$this->sub->stop();

yield new Success();
}

/** @test */
public function can_describe_persistent_subscription(): Generator
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Security/AuthenticationTestCase.php
Expand Up @@ -161,7 +161,7 @@ protected function setUpAsync(): Generator
protected function tearDownAsync(): Generator
{
$this->userCredentials = null;
//$this->connection->close();
$this->connection->close();

$manager = new UsersManager(
TestConnection::httpEndPoint(),
Expand Down
2 changes: 1 addition & 1 deletion tests/SpecificationWithConnection.php
Expand Up @@ -56,7 +56,7 @@ protected function execute(Closure $test): Promise

protected function end(): Generator
{
//$this->connection->close();
$this->connection->close();

yield new Success();
}
Expand Down
7 changes: 7 additions & 0 deletions tests/catch_up_subscription_handles_small_batch_sizes.php
Expand Up @@ -50,6 +50,13 @@ protected function setUpAsync(): Generator
$this->settings = new CatchUpSubscriptionSettings(100, 1, false, true);
}

protected function tearDownAsync(): Generator
{
$this->connection->close();

yield new Success();
}

/** @return EventData[] */
private function createOneHundredEvents(): array
{
Expand Down
Expand Up @@ -99,6 +99,13 @@ function (
}
}

protected function end(): Generator
{
$this->connection->close();

yield new Success();
}

/** @test */
public function the_first_subscription_connects_successfully(): Generator
{
Expand Down
Expand Up @@ -61,8 +61,15 @@ protected function when(): Generator
);
}

protected function end(): Generator
{
$this->connection->close();

yield new Success();
}

/** @test */
public function the_subscription_suceeds(): Generator
public function the_subscription_succeeds(): Generator
{
yield $this->execute(function (): Generator {
$this->assertNotNull(yield $this->sub);
Expand Down

0 comments on commit 4cd5cec

Please sign in to comment.