Fix error handling for delete pod (#685)

* Fix error handling for delete pod

- Error handling was looking for a k8s error from the provider, but
  providers should be using errdefs.
- Error handling was returning early if pod was not found and deleting
  from k8s in all other cases.

* Don't run unit tests twice
This commit is contained in:
Brian Goff
2019-06-29 00:07:24 -07:00
committed by Pires
parent 07379f7b1f
commit b915cde1ae
3 changed files with 75 additions and 11 deletions

View File

@@ -83,11 +83,9 @@ else
endif
test:
@echo "Testing..."
$Q go test -mod=vendor $(if $V,-v) $(allpackages) # install -race libs to speed up next run
ifndef CI
@echo "Testing Outside CI..."
$Q GODEBUG=cgocheck=2 go test -mod=vendor $(allpackages)
@echo "Testing..."
$Q go test -mod=vendor $(if $V,-v) $(allpackages)
else
@echo "Testing in CI..."
$Q mkdir -p test