Skip to content

Commit

Permalink
XXX wait for shutdown to complete if we're measuring graph size == 0
Browse files Browse the repository at this point in the history
Otherwise we might occasionally error this last test.
  • Loading branch information
purpleidea committed Aug 4, 2023
1 parent 55d820f commit 7d30bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lang/interpret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,8 @@ func TestAstFunc2(t *testing.T) {
t.Errorf("test #%d: expected empty graph on exit, got %d vertices", index, count)
}
}()
defer wg.Wait()
defer cancel()

txn := funcs.Txn()
interfaces.AddGraphToTxn(txn, graph)
Expand Down

0 comments on commit 7d30bf1

Please sign in to comment.