Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ test-smoke:
cd test && make test-smoke TEST_TIMEOUT=$(TEST_TIMEOUT)

build: vet lint
go build ./...
cd k8s && go build ./...
go build work

vet:
go vet ./...
cd k8s && go vet ./...
go vet work

lint:
ifeq ($(SKIP_LINT), 1)
Expand Down
7 changes: 5 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,11 @@ func (c *Client) doRequest(ctx context.Context, method, endpoint string, params
waitTime = c.retryMaxWaitTime
}

// Sleep for the calculated duration before retrying
time.Sleep(waitTime)
select {
case <-ctx.Done():
return ctx.Err()
case <-time.After(waitTime):
}
Comment on lines +625 to +629
Comment on lines +625 to +629
}

return err
Expand Down
2 changes: 1 addition & 1 deletion test/unit/vpc_subnets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestVPCSubnet_Create(t *testing.T) {
IPv4: "192.168.1.0/24",
IPv6: []linodego.VPCSubnetCreateOptionsIPv6{
{
linodego.Pointer("auto"),
Range: linodego.Pointer("auto"),
},
},
}
Expand Down