From 964afd30508c40f2a415d96d7bcdcabfeb26ae52 Mon Sep 17 00:00:00 2001 From: Matt Haggard Date: Wed, 5 Oct 2022 20:14:22 -0400 Subject: [PATCH] Make output assertion deterministic for test for #7172 (#20495) Co-authored-by: Clay Sweetser --- tests/threads/t7172.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/threads/t7172.nim b/tests/threads/t7172.nim index 983765dba5..18fbe336e6 100644 --- a/tests/threads/t7172.nim +++ b/tests/threads/t7172.nim @@ -2,8 +2,8 @@ discard """ output: ''' In doStuff() In initProcess() -initProcess() done TEST +initProcess() done Crashes before getting here! ''' joinable: false @@ -18,8 +18,8 @@ proc initProcess(): void = echo("In initProcess()") var thread: Thread[void] createThread(thread, whatever) - echo("initProcess() done") joinThread(thread) + echo("initProcess() done") proc doStuff(): void = echo("In doStuff()")