From dd91597f19dae90e8b671d2c80004f0a28dc177c Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 14 Feb 2019 13:48:45 -0500 Subject: [PATCH] database: remove FindLock from mock --- database/mock.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/database/mock.go b/database/mock.go index b95d1b4d..2c909fdc 100644 --- a/database/mock.go +++ b/database/mock.go @@ -48,7 +48,6 @@ type MockSession struct { FctFindKeyValue func(key string) (string, bool, error) FctLock func(name string, owner string, duration time.Duration, renew bool) (bool, time.Time, error) FctUnlock func(name, owner string) error - FctFindLock func(name string) (string, time.Time, bool, error) } func (ms *MockSession) Commit() error { @@ -220,13 +219,6 @@ func (ms *MockSession) Unlock(name, owner string) error { panic("required mock function not implemented") } -func (ms *MockSession) FindLock(name string) (string, time.Time, bool, error) { - if ms.FctFindLock != nil { - return ms.FctFindLock(name) - } - panic("required mock function not implemented") -} - // MockDatastore implements Datastore and enables overriding each available method. // The default behavior of each method is to simply panic. type MockDatastore struct {