Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ebachle committed May 7, 2024
1 parent 4ee03cd commit ffa8f4a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions provider/cloudflare/cloudflare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,18 +647,12 @@ func TestCloudFlareZonesWithIDFilter(t *testing.T) {
func TestCloudflareListZonesRateLimited(t *testing.T) {
// Create a mock client that returns a rate limit error
client := NewMockCloudFlareClient()
baseErr := &cloudflare.Error{
client.listZonesContextError = &cloudflare.Error{
StatusCode: 429,
ErrorCodes: []int{10000},
Type: cloudflare.ErrorTypeRateLimit,
}

client.listZonesContextError = baseErr

// Create a CloudFlareProvider with the mock client
p := &CloudFlareProvider{
Client: client,
}
p := &CloudFlareProvider{Client: client}

// Call the Zones function
_, err := p.Zones(context.Background())
Expand Down

0 comments on commit ffa8f4a

Please sign in to comment.