mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
chore: Enable more linters
This commit is contained in:
@@ -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")
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -1119,7 +1119,7 @@ func TestServiceLifecycle(t *testing.T) {
|
||||
Entrypoint: []string{"///pause"},
|
||||
Env: map[string]string{
|
||||
"VAR": "value",
|
||||
"EMTPY": "",
|
||||
"EMPTY": "",
|
||||
"BOOL": "true",
|
||||
"": "ignored",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user