Skip to content

Commit 35d0ed3

Browse files
committed
Fix issue with no-premium region used in TestNodeBalancer_Create_WithDeprecatedVPCsAttribute
1 parent 02e0644 commit 35d0ed3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test/integration/nodebalancers_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,13 @@ func TestNodeBalancer_Create_WithDeprecatedVPCsAttribute(t *testing.T) {
298298
client, recordStopper := createTestClient(t, "fixtures/TestNodeBalancer_Create_WithDeprecatedVPCsAttribute")
299299
defer recordStopper()
300300

301-
vpc, subnet, vpcTeardown, err := createVPCWithSubnet(t, client)
301+
vpc, subnet, vpcTeardown, err := createVPCWithSubnet(
302+
t,
303+
client,
304+
func(client *linodego.Client, opts *linodego.VPCCreateOptions) {
305+
opts.Region = premiumRegions[0]
306+
},
307+
)
302308
defer vpcTeardown()
303309
require.NoError(t, err, "Error creating VPC with subnet for NodeBalancer")
304310

0 commit comments

Comments
 (0)