Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Apr 28, 2023
1 parent 69d2ece commit e8e8092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/Illuminate/Support/Siesta.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace Illuminate\Support;

use Illuminate\Support\Carbon;
use Carbon\CarbonInterval;
use DateInterval;
use DateTimeInterface;
use PHPUnit\Framework\Assert as PHPUnit;
use RuntimeException;

Expand Down Expand Up @@ -251,7 +249,6 @@ public function __destruct()
$remaining = $remaining->subSeconds((int) $remaining->totalSeconds);
}


if ($remaining->totalMicroseconds > 0) {
usleep($remaining->totalMicroseconds);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/SiestaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function testItCanSleepTillGivenTime()
Siesta::until(now()->addMinute());

Siesta::assertSequence([
Siesta::for(60)->seconds()
Siesta::for(60)->seconds(),
]);
}

Expand All @@ -213,7 +213,7 @@ public function testItSleepsForZeroTimeIfTimeHasAlreadyPast()
Siesta::until(now()->subMinute());

Siesta::assertSequence([
Siesta::for(0)->seconds()
Siesta::for(0)->seconds(),
]);
}

Expand Down

0 comments on commit e8e8092

Please sign in to comment.