Ensure MemoryLocker implements Locker in tests
This commit is contained in:
parent
45936806a9
commit
b3fb3a3f5d
|
@ -7,7 +7,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMemoryLocker(t *testing.T) {
|
func TestMemoryLocker(t *testing.T) {
|
||||||
locker := New()
|
var locker Locker
|
||||||
|
locker = New()
|
||||||
|
|
||||||
if err := locker.LockUpload("one"); err != nil {
|
if err := locker.LockUpload("one"); err != nil {
|
||||||
t.Errorf("unexpected error when locking file: %s", err)
|
t.Errorf("unexpected error when locking file: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue