Merge pull request #110574 from SataQiu/test-speed-20220614

Using t.Run() in integration test TestApplyAlsoCreates
This commit is contained in:
Kubernetes Prow Robot 2022-06-14 12:07:45 -07:00 committed by GitHub
commit 8e541911b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,7 @@ func TestApplyAlsoCreates(t *testing.T) {
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
_, err := client.CoreV1().RESTClient().Patch(types.ApplyPatchType).
Namespace("default").
Resource(tc.resource).
@ -142,6 +143,7 @@ func TestApplyAlsoCreates(t *testing.T) {
if err != nil {
t.Fatalf("Failed to re-apply object using Apply patch: %v", err)
}
})
}
}