projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adds missing fix for llfuse 0.42+
[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..24b549cd656d5eb28cd720be6810ba6c5d2a0192 100644
(file)
--- 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{
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
}
}