projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11168: Prohibit down-migration to YAML-only codebase.
[arvados.git]
/
services
/
keepstore
/
volume_test.go
diff --git
a/services/keepstore/volume_test.go
b/services/keepstore/volume_test.go
index 6ab386aec4fcc7774af90c4fa5ca879258ac9404..931c10e69044c4715eb35ccab4d33872a848db5d 100644
(file)
--- a/
services/keepstore/volume_test.go
+++ b/
services/keepstore/volume_test.go
@@
-2,6
+2,7
@@
package main
import (
"bytes"
import (
"bytes"
+ "context"
"crypto/md5"
"errors"
"fmt"
"crypto/md5"
"errors"
"fmt"
@@
-95,7
+96,7
@@
func (v *MockVolume) gotCall(method string) {
}
}
}
}
-func (v *MockVolume) Compare(loc string, buf []byte) error {
+func (v *MockVolume) Compare(
ctx context.Context,
loc string, buf []byte) error {
v.gotCall("Compare")
<-v.Gate
if v.Bad {
v.gotCall("Compare")
<-v.Gate
if v.Bad {
@@
-113,7
+114,7
@@
func (v *MockVolume) Compare(loc string, buf []byte) error {
}
}
}
}
-func (v *MockVolume) Get(loc string, buf []byte) (int, error) {
+func (v *MockVolume) Get(
ctx context.Context,
loc string, buf []byte) (int, error) {
v.gotCall("Get")
<-v.Gate
if v.Bad {
v.gotCall("Get")
<-v.Gate
if v.Bad {
@@
-125,7
+126,7
@@
func (v *MockVolume) Get(loc string, buf []byte) (int, error) {
return 0, os.ErrNotExist
}
return 0, os.ErrNotExist
}
-func (v *MockVolume) Put(loc string, block []byte) error {
+func (v *MockVolume) Put(
ctx context.Context,
loc string, block []byte) error {
v.gotCall("Put")
<-v.Gate
if v.Bad {
v.gotCall("Put")
<-v.Gate
if v.Bad {