made gql_test.go pass

graph-rework-2
noah metz 2023-06-25 22:19:05 -06:00
parent bb3c80dbc7
commit 10ab3a48cf
1 changed files with 6 additions and 0 deletions

@ -2,6 +2,7 @@ package graphvent
import ( import (
"testing" "testing"
"time"
) )
func TestGQLThread(t * testing.T) { func TestGQLThread(t * testing.T) {
@ -15,6 +16,11 @@ func TestGQLThread(t * testing.T) {
err = LinkThreads(ctx, gql_thread, test_thread, nil) err = LinkThreads(ctx, gql_thread, test_thread, nil)
fatalErr(t, err) fatalErr(t, err)
go func(thread Thread){
time.Sleep(10*time.Millisecond)
SendUpdate(ctx, thread, CancelSignal(nil))
}(gql_thread)
err = RunThread(ctx, gql_thread) err = RunThread(ctx, gql_thread)
fatalErr(t, err) fatalErr(t, err)
} }