Minor cleanup to use t.Run() in test/integration

This commit is contained in:
Wojciech Tyczyński
2022-05-02 20:28:09 +02:00
parent f0791b5014
commit 04b77f02ee
5 changed files with 211 additions and 206 deletions

View File

@@ -410,7 +410,7 @@ func TestAdoption(t *testing.T) {
},
}
for i, tc := range testCases {
func() {
t.Run(tc.name, func(t *testing.T) {
s, closeFn, rm, informers, clientSet := rmSetup(t)
defer closeFn()
ns := framework.CreateTestingNamespace(fmt.Sprintf("rc-adoption-%d", i), s, t)
@@ -449,7 +449,7 @@ func TestAdoption(t *testing.T) {
}); err != nil {
t.Fatalf("test %q failed: %v", tc.name, err)
}
}()
})
}
}