@@ -92,7 +92,7 @@ func TestNodeBalancer_Get(t *testing.T) {
9292 },
9393 }
9494
95- for _ , tt := range tests {
95+ for idx , tt := range tests {
9696 t .Run (tt .name , func (t * testing.T ) {
9797 fixtureData , err := fixtures .GetFixture (tt .fixture )
9898 assert .NoError (t , err )
@@ -112,9 +112,13 @@ func TestNodeBalancer_Get(t *testing.T) {
112112 assert .Equal (t , "us-west" , nodebalancer .Region , "Expected NodeBalancer region to match" )
113113 assert .Equal (t , []linodego.LockType {linodego .LockTypeCannotDeleteWithSubresources }, nodebalancer .Locks , "Expected NodeBalancer locks to match" )
114114 assert .Equal (t , tt .expectedLKECluster , nodebalancer .LKECluster , "Expected NodeBalancer LKECluster to match" )
115- assert .Equal (t , linodego .NBTypePremium40GB , nodebalancer .Type )
116- assert .Equal (t , linodego .NodeBalancerVPCFrontendAddressTypeVPC , nodebalancer .FrontendAddressType )
117- assert .Equal (t , 456 , * nodebalancer .FrontendVPCSubnetID )
115+ if idx == 0 {
116+ assert .Equal (t , linodego .NBTypePremium40GB , nodebalancer .Type )
117+ assert .Equal (t , linodego .NodeBalancerVPCFrontendAddressTypeVPC , nodebalancer .FrontendAddressType )
118+ assert .Equal (t , 456 , * nodebalancer .FrontendVPCSubnetID )
119+ } else {
120+ assert .Equal (t , linodego .NBTypeCommon , nodebalancer .Type )
121+ }
118122 })
119123 }
120124}
0 commit comments