X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3400559165e50e3d62adf6d45f9970a13450d907..139200027a3192260b5ea7c2d0c93a8eb5f8eb7e:/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 }