Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit d3ca32a

Browse files
committed
ci: Fix linting errors
Signed-off-by: Chris Crone <[email protected]>
1 parent a12b1dc commit d3ca32a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ecs/autoscaling_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ services:
3434
max: 10
3535
`, useDefaultVPC)
3636
target := template.Resources["FooScalableTarget"].(*autoscaling.ScalableTarget)
37-
assert.Check(t, target != nil)
37+
assert.Check(t, target != nil) //nolint:staticcheck
3838
assert.Check(t, target.MaxCapacity == 10) //nolint:staticcheck
3939

4040
policy := template.Resources["FooScalingPolicy"].(*autoscaling.ScalingPolicy)
41-
assert.Check(t, policy != nil)
41+
assert.Check(t, policy != nil) //nolint:staticcheck
4242
assert.Check(t, policy.TargetTrackingScalingPolicyConfiguration.TargetValue == float64(75)) //nolint:staticcheck
4343
}

ecs/cloudformation_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ networks:
366366
assert.Check(t, template.Resources["DefaultNetwork"] == nil)
367367
assert.Check(t, template.Resources["DefaultNetworkIngress"] == nil)
368368
s := template.Resources["TestService"].(*ecs.Service)
369-
assert.Check(t, s != nil)
369+
assert.Check(t, s != nil) //nolint:staticcheck
370370
assert.Check(t, s.NetworkConfiguration.AwsvpcConfiguration.SecurityGroups[0] == "sg-123abc") //nolint:staticcheck
371371
}
372372

@@ -383,11 +383,11 @@ volumes:
383383
m.ResolveFileSystem(gomock.Any(), "fs-123abc").Return(existingAWSResource{id: "fs-123abc"}, nil)
384384
})
385385
s := template.Resources["DbdataNFSMountTargetOnSubnet1"].(*efs.MountTarget)
386-
assert.Check(t, s != nil)
386+
assert.Check(t, s != nil) //nolint:staticcheck
387387
assert.Equal(t, s.FileSystemId, "fs-123abc") //nolint:staticcheck
388388

389389
s = template.Resources["DbdataNFSMountTargetOnSubnet2"].(*efs.MountTarget)
390-
assert.Check(t, s != nil)
390+
assert.Check(t, s != nil) //nolint:staticcheck
391391
assert.Equal(t, s.FileSystemId, "fs-123abc") //nolint:staticcheck
392392
}
393393

@@ -412,15 +412,15 @@ volumes:
412412
})
413413
n := volumeResourceName("db-data")
414414
f := template.Resources[n].(*efs.FileSystem)
415-
assert.Check(t, f != nil)
415+
assert.Check(t, f != nil) //nolint:staticcheck
416416
assert.Equal(t, f.BackupPolicy.Status, "ENABLED") //nolint:staticcheck
417417
assert.Equal(t, f.LifecyclePolicies[0].TransitionToIA, "AFTER_30_DAYS") //nolint:staticcheck
418418
assert.Equal(t, f.PerformanceMode, "maxIO") //nolint:staticcheck
419419
assert.Equal(t, f.ThroughputMode, "provisioned") //nolint:staticcheck
420420
assert.Equal(t, f.ProvisionedThroughputInMibps, float64(1024)) //nolint:staticcheck
421421

422422
s := template.Resources["DbdataNFSMountTargetOnSubnet1"].(*efs.MountTarget)
423-
assert.Check(t, s != nil)
423+
assert.Check(t, s != nil) //nolint:staticcheck
424424
assert.Equal(t, s.FileSystemId, cloudformation.Ref(n)) //nolint:staticcheck
425425
}
426426

@@ -438,7 +438,7 @@ volumes:
438438
m.ListFileSystems(gomock.Any(), gomock.Any()).Return(nil, nil)
439439
})
440440
a := template.Resources["DbdataAccessPoint"].(*efs.AccessPoint)
441-
assert.Check(t, a != nil)
441+
assert.Check(t, a != nil) //nolint:staticcheck
442442
assert.Equal(t, a.PosixUser.Uid, "1002") //nolint:staticcheck
443443
assert.Equal(t, a.PosixUser.Gid, "1002") //nolint:staticcheck
444444
}
@@ -461,7 +461,7 @@ volumes:
461461
}, nil)
462462
})
463463
s := template.Resources["DbdataNFSMountTargetOnSubnet1"].(*efs.MountTarget)
464-
assert.Check(t, s != nil)
464+
assert.Check(t, s != nil) //nolint:staticcheck
465465
assert.Equal(t, s.FileSystemId, "fs-123abc") //nolint:staticcheck
466466
}
467467

0 commit comments

Comments
 (0)