Merge pull request #44 from platform9/poolmgr-test
Bugfix in functionServiceCache test
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user