X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e1902b8a0490aa6b7ffc544c1609d4d57a5110ce..61a8873440a505d1483a04354b8d1f2089e76e39:/services/keepstore/volume_test.go diff --git a/services/keepstore/volume_test.go b/services/keepstore/volume_test.go index 6ab386aec4..931c10e690 100644 --- a/services/keepstore/volume_test.go +++ b/services/keepstore/volume_test.go @@ -2,6 +2,7 @@ package main import ( "bytes" + "context" "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 { @@ -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 { @@ -125,7 +126,7 @@ func (v *MockVolume) Get(loc string, buf []byte) (int, error) { 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 {