Skip to content

Commit a88a2c9

Browse files
committed
Sleep before getting the pods
1 parent b19f66c commit a88a2c9

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

tests/DeploymentTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ public function runCreationTests()
123123

124124
$this->assertInstanceOf(K8sPod::class, $dep->getTemplate());
125125

126+
sleep(10);
127+
126128
$pods = $dep->getPods();
127129

128130
$this->assertTrue($pods->count() > 0);

tests/JobTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public function runCreationTests()
113113

114114
$this->assertInstanceOf(K8sPod::class, $job->getTemplate());
115115

116+
sleep(10);
117+
116118
$pods = $job->getPods();
117119

118120
$this->assertTrue($pods->count() > 0);

tests/StatefulSetTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ public function runCreationTests()
174174
$this->assertInstanceOf(K8sPod::class, $sts->getTemplate());
175175
$this->assertInstanceOf(K8sPersistentVolumeClaim::class, $sts->getVolumeClaims()[0]);
176176

177+
sleep(10);
178+
177179
$pods = $sts->getPods();
178180

179181
$this->assertTrue($pods->count() > 0);

0 commit comments

Comments
 (0)