10218: Wait for container to be started (not just created) before trying to cancel it.
[arvados.git] / services / keepstore / mock_mutex_for_test.go
index e75d91058785e018a064f3255d2f27b4d005ca41..24b549cd656d5eb28cd720be6810ba6c5d2a0192 100644 (file)
@@ -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
 }