chore(linters): enable testifylint BE-12183 (#1091)

This commit is contained in:
andres-portainer
2025-08-22 15:31:10 -03:00
committed by GitHub
parent 121e9f03a4
commit ec0e98a64b
97 changed files with 987 additions and 891 deletions
+2 -2
View File
@@ -564,7 +564,7 @@ func Test_DeployWithIgnoreOrphans(t *testing.T) {
require.Equal(t, libstack.StatusCompleted, waitResult.Status)
logString := logOutput.String()
require.False(t, strings.Contains(logString, "Found orphan containers ([compose_ignore_orphans_test-service-1-1])"))
require.NotContains(t, logString, "Found orphan containers ([compose_ignore_orphans_test-service-1-1])")
}
func Test_MaxConcurrency(t *testing.T) {
@@ -597,7 +597,7 @@ func Test_MaxConcurrency(t *testing.T) {
w.withComposeService(ctx, filepaths, options, func(service api.Service, _ *types.Project) error {
if mockS, ok := service.(*mockComposeService); ok {
require.Equal(t, mockS.maxConcurrency, expectedMaxConcurrency)
require.Equal(t, expectedMaxConcurrency, mockS.maxConcurrency)
} else {
t.Fatalf("Expected mockComposeService but got %T", service)
}