From f1e029060591cdcb5149e223b9960b71e88a45aa Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Fri, 17 Oct 2014 15:21:03 -0700 Subject: [PATCH] fix broken test --- pkg/registry/etcd/etcd_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/registry/etcd/etcd_test.go b/pkg/registry/etcd/etcd_test.go index f3a97389281..4cd2b5e41e9 100644 --- a/pkg/registry/etcd/etcd_test.go +++ b/pkg/registry/etcd/etcd_test.go @@ -229,8 +229,9 @@ func TestEtcdCreatePodFailsWithoutNamespace(t *testing.T) { }, }, }) - if err == nil || !strings.Contains(err.Error(), "namespace") { - t.Fatalf("expected error that namespace was missing from context") + // Accept "namespace" or "Namespace". + if err == nil || !strings.Contains(err.Error(), "amespace") { + t.Fatalf("expected error that namespace was missing from context, got: %v", err) } }