function service cache test bugfix

This commit is contained in:
Soam Vasani
2016-12-04 15:23:55 -08:00
parent dd08d07d59
commit 571fa6b0e7
+5 -1
View File
@@ -58,11 +58,15 @@ func TestFunctionServiceCache(t *testing.T) {
log.Panicf("Failed to touch fsvc: %v", err) log.Panicf("Failed to touch fsvc: %v", err)
} }
err = fsc.DeleteByPod(fsvc.podName) deleted, err := fsc.DeleteByPod(fsvc.podName, 0)
if err != nil { if err != nil {
fsc.Log() fsc.Log()
log.Panicf("Failed to delete fsvc: %v", err) log.Panicf("Failed to delete fsvc: %v", err)
} }
if !deleted {
fsc.Log()
log.Panicf("Did not delete fsvc")
}
_, err = fsc.GetByFunction(fsvc.function) _, err = fsc.GetByFunction(fsvc.function)
if err == nil { if err == nil {