chore: Enable more linters

This commit is contained in:
Anton Ovchinnikov
2025-07-14 00:32:26 +02:00
parent 053d73048c
commit 05d0078451
9 changed files with 40 additions and 17 deletions
-1
View File
@@ -160,6 +160,5 @@ func TestComposeBuild(t *testing.T) {
require.NoError(t, err)
assert.Equal(t, tags, []string{"version2"}, "Tags for service service-second do not match")
})
}
+2 -2
View File
@@ -97,7 +97,7 @@ func TestComposeDeployment(t *testing.T) {
deploy, err := compose.NewDeployment(ctx, cli, project)
require.NoError(t, err)
plan, err := deploy.Plan(ctx)
_, err = deploy.Plan(ctx)
require.ErrorContains(t, err, "external volumes not found: 'test-compose-volumes-external'")
externalVolumeOpts := volume.CreateOptions{Name: "test-compose-volumes-external"}
@@ -108,7 +108,7 @@ func TestComposeDeployment(t *testing.T) {
deploy, err = compose.NewDeployment(ctx, cli, project)
require.NoError(t, err)
plan, err = deploy.Plan(ctx)
plan, err := deploy.Plan(ctx)
require.NoError(t, err)
assert.Len(t, plan.Operations, 5, "Expected 2 volumes creation and 3 services to deploy")
+1 -1
View File
@@ -1119,7 +1119,7 @@ func TestServiceLifecycle(t *testing.T) {
Entrypoint: []string{"///pause"},
Env: map[string]string{
"VAR": "value",
"EMTPY": "",
"EMPTY": "",
"BOOL": "true",
"": "ignored",
},