Updated TestDelegateLock to test if lock gets passed back correctly

graph-rework
noah metz 2023-06-20 22:37:48 -06:00
parent adcd079156
commit 10323ee677
1 changed files with 3 additions and 0 deletions

@ -360,6 +360,9 @@ func TestDelegateLock(t * testing.T) {
go func() { go func() {
(*GraphTester)(t).WaitForValue(test_listener, "event_done", test_event, 250 * time.Millisecond, "No event_done for test_event") (*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") abort_signal := NewDownSignal(nil, "cancel")
SendUpdate(root_event, abort_signal) SendUpdate(root_event, abort_signal)
}() }()