summaryrefslogtreecommitdiffhomepage
path: root/pkg/amutex/amutex_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/amutex/amutex_test.go')
-rw-r--r--pkg/amutex/amutex_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/amutex/amutex_test.go b/pkg/amutex/amutex_test.go
index 6a0af006e..211bdda4b 100644
--- a/pkg/amutex/amutex_test.go
+++ b/pkg/amutex/amutex_test.go
@@ -31,6 +31,10 @@ func (s *sleeper) SleepStart() <-chan struct{} {
func (*sleeper) SleepFinish(bool) {
}
+func (s *sleeper) Interrupted() bool {
+ return len(s.ch) != 0
+}
+
func TestMutualExclusion(t *testing.T) {
var m AbortableMutex
m.Init()