Commit 1b25043f authored by Peter-Jan Brone's avatar Peter-Jan Brone

Merge branch 'read-cancellation-token' into pt-duration

parents 5edeec62 32c78b69
Pipeline #152332338 failed with stages
in 29 minutes and 57 seconds
......@@ -109,8 +109,8 @@ func (h *Host) managedRPCExecuteProgram(stream siamux.Stream) error {
}
// Return 16 bytes of data as a placeholder for a future cancellation token.
token := make([]byte, modules.MDMCancellationTokenLen)
err = modules.RPCWrite(stream, token)
ct := make([]byte, modules.MDMCancellationTokenLen)
err = modules.RPCWrite(stream, ct)
if err != nil {
return errors.AddContext(err, "Failed to write cancellation token")
}
......
......@@ -151,7 +151,7 @@ func TestExecuteReadSectorProgram(t *testing.T) {
// this particular program on the "renter" side. This way we can test that
// the bandwidth measured by the renter is large enough to be accepted by
// the host.
expectedDownload := uint64(5840) // download
expectedDownload := uint64(7300) // download
expectedUpload := uint64(10220) // upload
downloadCost := pt.DownloadBandwidthCost.Mul64(expectedDownload)
uploadCost := pt.UploadBandwidthCost.Mul64(expectedUpload)
......@@ -439,7 +439,7 @@ func TestExecuteHasSectorProgram(t *testing.T) {
// this particular program on the "renter" side. This way we can test that
// the bandwidth measured by the renter is large enough to be accepted by
// the host.
expectedDownload := uint64(2920) // download
expectedDownload := uint64(4380) // download
expectedUpload := uint64(10220) // upload
downloadCost := pt.DownloadBandwidthCost.Mul64(expectedDownload)
uploadCost := pt.UploadBandwidthCost.Mul64(expectedUpload)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment