Skip to content

Commit

Permalink
Fix ServerRateLimitsSyncServiceTest.php test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Oct 12, 2024
1 parent 27e9e82 commit 8fe890a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/Unit/Services/Nodes/ServerRateLimitsSyncServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@

it('can rate limit servers if over limit', function () {
Http::fake([
'/api2/json/nodes/*/qemu/*/config' => Http::response([
file_get_contents(
base_path(
'tests/Fixtures/Repositories/Server/GetServerConfigData.json',
'/api2/json/nodes/*/qemu/*/config' => Http::sequence([
Http::response([
file_get_contents(
base_path(
'tests/Fixtures/Repositories/Server/GetServerConfigData.json',
),
),
),
], 200),
'*' => Http::response(['data' => 'dummy-upid'], 200),
], 200),
Http::response(['data' => 'dummy-upid'], 200)
]),
]);

[$_, $_, $node, $server] = createServerModel();
Expand Down

0 comments on commit 8fe890a

Please sign in to comment.