diff --git a/tests/Unit/Services/Nodes/ServerRateLimitsSyncServiceTest.php b/tests/Unit/Services/Nodes/ServerRateLimitsSyncServiceTest.php index 7b9ea60e88f..f5ea6273cc0 100644 --- a/tests/Unit/Services/Nodes/ServerRateLimitsSyncServiceTest.php +++ b/tests/Unit/Services/Nodes/ServerRateLimitsSyncServiceTest.php @@ -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();