7751: Clean up KEEP_LOCAL_STORE env var after tests.
[arvados.git] / services / keepstore / volume_test.go
index 5467ed541b3dc90974e3d70ea531971b48f70341..d6714365de5bef98ad082b93f595231993bafa48 100644 (file)
@@ -190,7 +190,7 @@ func (v *MockVolume) Delete(loc string) error {
                return MethodDisabledError
        }
        if _, ok := v.Store[loc]; ok {
-               if time.Since(v.Timestamps[loc]) < blob_signature_ttl {
+               if time.Since(v.Timestamps[loc]) < blobSignatureTTL {
                        return nil
                }
                delete(v.Store, loc)
@@ -214,3 +214,7 @@ func (v *MockVolume) String() string {
 func (v *MockVolume) Writable() bool {
        return !v.Readonly
 }
+
+func (v *MockVolume) Replication() int {
+       return 1
+}