fix(xo-server/remotes): update remote error on test (#5514)

See xoa-support#3255
This commit is contained in:
badrAZ
2021-01-20 08:37:51 +01:00
committed by GitHub
parent 11a78111de
commit 6b9d3ed60e
2 changed files with 6 additions and 0 deletions

View File

@@ -25,6 +25,7 @@
- [Backup/S3] Fix `TimeoutError: Connection timed out after 120000ms` (PR [#5456](https://github.com/vatesfr/xen-orchestra/pull/5456))
- [New SR/reattach SR] Fix SR not being properly reattached to hosts [#4546](https://github.com/vatesfr/xen-orchestra/issues/4546) (PR [#5488](https://github.com/vatesfr/xen-orchestra/pull/5488))
- [Home/pool] Missing patches warning: fix 1 patch showing as missing in case of error [#4922](https://github.com/vatesfr/xen-orchestra/issues/4922)
- [Proxy/remote] Fix error not updated on remote test (PR [#5514](https://github.com/vatesfr/xen-orchestra/pull/5514))
### Packages to release

View File

@@ -103,11 +103,16 @@ export default class {
writeRate,
}
await this._updateRemote(remoteId, {
error: '',
benchmarks:
remote.benchmarks !== undefined
? [...remote.benchmarks.slice(-49), benchmark] // store 50 benchmarks
: [benchmark],
})
} else {
await this._updateRemote(remoteId, {
error: answer.error,
})
}
return answer