fix(xo-server/remotes): update remote error on test (#5514)
See xoa-support#3255
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user