Skip to content

Commit 72e9e9a

Browse files
committed
ignore not found networks during integration tests
1 parent 63d8c75 commit 72e9e9a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/sample/Compute/v2/TestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ protected function deleteServer(Server $server): void
8787

8888
foreach ($networks as $networkName) {
8989
$network = $this->getNetworkService()->listNetworks(['name' => $networkName])->current();
90+
if ($network == null){
91+
continue;
92+
}
9093
$this->deleteNetwork($network);
9194
}
9295
}

0 commit comments

Comments
 (0)