projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15028: Fix reporting logs on container requests
[arvados.git]
/
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 e75d91058785e018a064f3255d2f27b4d005ca41..484b177230b3cdb2c581e654993bfd8dfd1027b2 100644
(file)
--- 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 {
package main
type MockMutex struct {
@@
-7,17
+11,17
@@
type MockMutex struct {
func NewMockMutex() *MockMutex {
return &MockMutex{
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() {
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() {
}
// Unlock waits for someone to send to AllowUnlock.
func (m *MockMutex) Unlock() {
- <-
m.AllowUnlock
+ <-m.AllowUnlock
}
}