Merge pull request #108477 from aojea/integration_test_trun

integration: run test cases in eachs own subtest
This commit is contained in:
Kubernetes Prow Robot 2022-03-03 07:21:48 -08:00 committed by GitHub
commit 3a52f8bcc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,7 @@ func TestStatus(t *testing.T) {
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
_, s, closeFn := framework.RunAnAPIServer(tc.controlPlaneConfig)
defer closeFn()
@ -240,6 +241,7 @@ func TestStatus(t *testing.T) {
if got, expected := decodedData["message"], tc.message; got != expected {
t.Errorf("unexpected message %v, expected %v", got, expected)
}
})
}
}