Skip to content

Commit

Permalink
fix: delete vhosts before running test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-etna committed Sep 29, 2022
1 parent a0a2f36 commit ed7c67a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RabbitMQ.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ static public function createVhosts()
foreach (self::$vhosts as $vhost) {
$vhost = str_replace('/', '%2f', $vhost);

// delete the vhost if it exists. See the comment bellow in deleteVhosts()
$client->delete("/api/vhosts/{$vhost}", [ 'http_errors' => false ]);

$client->put("/api/vhosts/{$vhost}");

$client->put(
Expand Down

0 comments on commit ed7c67a

Please sign in to comment.