From 5ddcef24a62e81085250d80b2aa61f5d19750546 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Fri, 14 Aug 2015 16:00:21 -0400 Subject: [PATCH] Fix failing test --- pkg/storage/cacher_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/storage/cacher_test.go b/pkg/storage/cacher_test.go index 0603ec3465d..edbcaf32caf 100644 --- a/pkg/storage/cacher_test.go +++ b/pkg/storage/cacher_test.go @@ -54,11 +54,13 @@ func newTestCacher(client tools.EtcdClient) *storage.Cacher { } func makeTestPod(name string) *api.Pod { + gracePeriod := int64(30) return &api.Pod{ ObjectMeta: api.ObjectMeta{Namespace: "ns", Name: name}, Spec: api.PodSpec{ - DNSPolicy: api.DNSClusterFirst, - RestartPolicy: api.RestartPolicyAlways, + TerminationGracePeriodSeconds: &gracePeriod, + DNSPolicy: api.DNSClusterFirst, + RestartPolicy: api.RestartPolicyAlways, }, } }