Commit 2df9ddc
committed
mock: avoid "not found" error in ControllerUnpublishVolume
The behavior of the external-attacher recently changed
(kubernetes-csi/external-attacher#165) such
that it now treats "not found" as real error.
The effect was that some Kubernetes E2E tests (like "CSI mock volume
CSI workload information using mock driver should not be passed when
podInfoOnMount=false") sometimes ran for over 2 minutes, just waiting
for detatch. That the test then proceeds without marking the test as
failed is a bug in the test cleanup code which will be
fixed.
This slowdown is not deterministic: sometimes the detach is done early
enough while the volume still exists.
With this change, the same test completes in under 30 seconds.1 parent 1675a8e commit 2df9ddc
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
0 commit comments