function service cache test bugfix
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user