X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/52cca9dc7c50ef8c54c9dc83a2ccf0129c27485e..0f644e242ef37c911ad3dc25aca8135c339de349:/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..484b177230 100644 --- a/services/keepstore/mock_mutex_for_test.go +++ b/services/keepstore/mock_mutex_for_test.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main type MockMutex struct { @@ -7,17 +11,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 }