We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c069082 commit 20de50fCopy full SHA for 20de50f
1 file changed
tests/Integration/Compute/MachinesTest.php
@@ -92,6 +92,27 @@ public function test_start_machine(): void
92
self::assertTrue($operation->getDone());
93
}
94
95
+ public function test_stop_machine_fiber(): void
96
+ {
97
+ assert($this->client !== null);
98
+ $machine = $this->client->machines()->get('php-cbws-test1');
99
+ $fiber = $machine->stop()->fiber();
100
+ $fiber->start();
101
+
102
+ // Wait until operation has finished
103
+ while (!$fiber->isTerminated()) {
104
+ $fiber->resume();
105
+ }
106
107
+ $operation = $fiber->getReturn();
108
109
+ if ($operation->getError() !== null) {
110
+ throw $operation->getError();
111
112
+ self::assertTrue($operation->getDone());
113
114
115
116
public function test_start_machine_fiber(): void
117
{
118
assert($this->client !== null);
0 commit comments