X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c5eed3ffad31ff92f8399d32c57a710681c79caa..524c20020594ba67a2a822eccb632f8a5f5dc3ce:/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 }