Merge pull request #44 from platform9/poolmgr-test

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