Skip to content

Commit

Permalink
Merge pull request #49 from outl1ne/Virtual-branch
Browse files Browse the repository at this point in the history
Fix test keeping stuck
  • Loading branch information
allantatter authored Aug 2, 2024
2 parents e9fef20 + 5b3c35d commit ab7d731
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Unit/ThreadsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function test_threads(): void
while ($status !== 'completed') {
$runStatus = OpenAI::threads()->run()->retrieve($thread->id, $run->id);
$this->assertTrue($runStatus instanceof RunResponse);
if ($runStatus->status === 'completed') {
$status = 'completed';
}
sleep(1);
}

Expand Down

0 comments on commit ab7d731

Please sign in to comment.