Refactoring variable declaration and value setting

This commit is contained in:
Egor Pats 2023-09-29 16:17:28 +03:00
parent dc28eeaa3a
commit 5ebde41efb

View File

@ -862,8 +862,7 @@ metadata:
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
out := &bytes.Buffer{}
var replicas int32
replicas = 3
var replicas int32 = 3
if err := coreDNSAddon(tt.args.cfg, tt.args.client, &replicas, out, tt.args.printManifest); (err != nil) != tt.wantErr {
t.Errorf("coreDNSAddon() error = %v, wantErr %v", err, tt.wantErr)
return