mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #108477 from aojea/integration_test_trun
integration: run test cases in eachs own subtest
This commit is contained in:
commit
3a52f8bcc6
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user