X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a3e32a2f4a702c076d46a5b19305dd20a1ee3012..2c6557f613fcf6cdcebb08c321a5d061aeb780c6:/services/keepstore/mock_mutex_for_test.go?ds=sidebyside diff --git a/services/keepstore/mock_mutex_for_test.go b/services/keepstore/mock_mutex_for_test.go deleted file mode 100644 index 24b549cd65..0000000000 --- a/services/keepstore/mock_mutex_for_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package main - -type MockMutex struct { - AllowLock chan struct{} - AllowUnlock chan struct{} -} - -func NewMockMutex() *MockMutex { - return &MockMutex{ - AllowLock: make(chan struct{}), - AllowUnlock: make(chan struct{}), - } -} - -// Lock waits for someone to send to AllowLock. -func (m *MockMutex) Lock() { - <-m.AllowLock -} - -// Unlock waits for someone to send to AllowUnlock. -func (m *MockMutex) Unlock() { - <-m.AllowUnlock -}