Ensure MemoryLocker implements Locker in tests

This commit is contained in:
Marius 2015-12-15 22:04:12 +01:00
parent 45936806a9
commit b3fb3a3f5d
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ import (
)
func TestMemoryLocker(t *testing.T) {
locker := New()
var locker Locker
locker = New()
if err := locker.LockUpload("one"); err != nil {
t.Errorf("unexpected error when locking file: %s", err)