From 10ab3a48cfa52578ecfa64958c39a786413f3b12 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 25 Jun 2023 22:19:05 -0600 Subject: [PATCH] made gql_test.go pass --- gql_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gql_test.go b/gql_test.go index a7828f7..93c627b 100644 --- a/gql_test.go +++ b/gql_test.go @@ -2,6 +2,7 @@ package graphvent import ( "testing" + "time" ) func TestGQLThread(t * testing.T) { @@ -15,6 +16,11 @@ func TestGQLThread(t * testing.T) { err = LinkThreads(ctx, gql_thread, test_thread, nil) fatalErr(t, err) + go func(thread Thread){ + time.Sleep(10*time.Millisecond) + SendUpdate(ctx, thread, CancelSignal(nil)) + }(gql_thread) + err = RunThread(ctx, gql_thread) fatalErr(t, err) }