mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
using t.Run() in integration test TestApplyAlsoCreates
This commit is contained in:
parent
4a542609aa
commit
20f8a06e50
@ -113,6 +113,7 @@ func TestApplyAlsoCreates(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
|
t.Run(tc.name, func(t *testing.T) {
|
||||||
_, err := client.CoreV1().RESTClient().Patch(types.ApplyPatchType).
|
_, err := client.CoreV1().RESTClient().Patch(types.ApplyPatchType).
|
||||||
Namespace("default").
|
Namespace("default").
|
||||||
Resource(tc.resource).
|
Resource(tc.resource).
|
||||||
@ -142,6 +143,7 @@ func TestApplyAlsoCreates(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Failed to re-apply object using Apply patch: %v", err)
|
t.Fatalf("Failed to re-apply object using Apply patch: %v", err)
|
||||||
}
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user