diff options
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tchannels_pthread.nim | 3 | ||||
-rw-r--r-- | tests/stdlib/tchannels_simple.nim | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/stdlib/tchannels_pthread.nim b/tests/stdlib/tchannels_pthread.nim index a9708d8fb..3bc000551 100644 --- a/tests/stdlib/tchannels_pthread.nim +++ b/tests/stdlib/tchannels_pthread.nim @@ -89,6 +89,7 @@ proc runSuite( capacity(chan) == 1 isBuffered(chan) == false isUnbuffered(chan) == true + else: chan = allocChannel(size = int.sizeof.int, n = 7) check: @@ -109,7 +110,7 @@ proc runSuite( discard pthread_join(threads[0], nil) discard pthread_join(threads[1], nil) - freeChannel(chan) + freeChannel(chan) # ---------------------------------------------------------------------------------- diff --git a/tests/stdlib/tchannels_simple.nim b/tests/stdlib/tchannels_simple.nim index dc4857c3e..56e5fb8f1 100644 --- a/tests/stdlib/tchannels_simple.nim +++ b/tests/stdlib/tchannels_simple.nim @@ -24,8 +24,7 @@ var worker1: Thread[void] createThread(worker1, firstWorker) # Block until the message arrives, then print it out. -var dest = "" -chan.recv(dest) +let dest = chan.recv() doAssert dest == "Hello World!" # Wait for the thread to exit before moving on to the next example. |