mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Fix typo in secrets integration test
This commit is contained in:
parent
8dbbf3da5c
commit
d381db1778
@ -39,7 +39,7 @@ func init() {
|
|||||||
|
|
||||||
func deletePodOrErrorf(t *testing.T, c *client.Client, ns, name string) {
|
func deletePodOrErrorf(t *testing.T, c *client.Client, ns, name string) {
|
||||||
if err := c.Pods(ns).Delete(name); err != nil {
|
if err := c.Pods(ns).Delete(name); err != nil {
|
||||||
t.Errorf("unable to delete pods %v: %v", name, err)
|
t.Errorf("unable to delete pod %v: %v", name, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func deleteSecretOrErrorf(t *testing.T, c *client.Client, ns, name string) {
|
func deleteSecretOrErrorf(t *testing.T, c *client.Client, ns, name string) {
|
||||||
@ -136,7 +136,7 @@ func DoTestSecrets(t *testing.T, client *client.Client, apiVersion string) {
|
|||||||
defer deletePodOrErrorf(t, client, ns, pod.Name)
|
defer deletePodOrErrorf(t, client, ns, pod.Name)
|
||||||
|
|
||||||
// Create a pod that consumes non-existent secret.
|
// Create a pod that consumes non-existent secret.
|
||||||
pod.ObjectMeta.Name = "uses-non-existant-secret"
|
pod.ObjectMeta.Name = "uses-non-existent-secret"
|
||||||
if _, err := client.Pods(ns).Create(pod); err != nil {
|
if _, err := client.Pods(ns).Create(pod); err != nil {
|
||||||
t.Errorf("Failed to create pod: %v", err)
|
t.Errorf("Failed to create pod: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user