From 10323ee67720f7bf7b1e255d5f62721ef4719f23 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 20 Jun 2023 22:37:48 -0600 Subject: [PATCH] Updated TestDelegateLock to test if lock gets passed back correctly --- manager_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manager_test.go b/manager_test.go index 3387691..e4453d3 100644 --- a/manager_test.go +++ b/manager_test.go @@ -360,6 +360,9 @@ func TestDelegateLock(t * testing.T) { go func() { (*GraphTester)(t).WaitForValue(test_listener, "event_done", test_event, 250 * time.Millisecond, "No event_done for test_event") + if test_resource.Owner().ID() != root_event.ID() { + t.Fatal("Lock failed to pass back to root_event") + } abort_signal := NewDownSignal(nil, "cancel") SendUpdate(root_event, abort_signal) }()