Commit d381db17 authored by Paul Morie's avatar Paul Morie

Fix typo in secrets integration test

parent 8dbbf3da
...@@ -39,7 +39,7 @@ func init() { ...@@ -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) { ...@@ -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)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment