X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/52cca9dc7c50ef8c54c9dc83a2ccf0129c27485e..257d60253246952b435cea23b1912af80ea2c6d6:/services/keepstore/mock_mutex_for_test.go diff --git a/services/keepstore/mock_mutex_for_test.go b/services/keepstore/mock_mutex_for_test.go index e75d910587..24b549cd65 100644 --- a/services/keepstore/mock_mutex_for_test.go +++ b/services/keepstore/mock_mutex_for_test.go @@ -7,17 +7,17 @@ type MockMutex struct { func NewMockMutex() *MockMutex { return &MockMutex{ - AllowLock: make(chan struct{}), + AllowLock: make(chan struct{}), AllowUnlock: make(chan struct{}), } } // Lock waits for someone to send to AllowLock. func (m *MockMutex) Lock() { - <- m.AllowLock + <-m.AllowLock } // Unlock waits for someone to send to AllowUnlock. func (m *MockMutex) Unlock() { - <- m.AllowUnlock + <-m.AllowUnlock }