Skip to content

Commit

Permalink
Add sleep after reporting event usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bark-fa committed Aug 19, 2024
1 parent 93c4be5 commit 15758fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Feature/UsageBasedBillingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function test_report_usage_for_meter()
sleep(1);

$user->reportMeterEvent(static::$meterEventName, 10);
sleep(1);

$summary = $user->meterEventSummaries(static::$meterId)->first();

Expand Down Expand Up @@ -170,6 +171,7 @@ public function test_reporting_event_usage_for_subscriptions_with_multiple_price
}

$user->reportMeterEvent(static::$otherMeterEventName, 20);
sleep(1);

try {
$user->meterEventSummaries(static::$otherMeterId)->first();
Expand Down

0 comments on commit 15758fe

Please sign in to comment.