summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorYuriy Glukhov <yglukhov@users.noreply.github.com>2017-12-31 11:28:51 +0300
committerAndreas Rumpf <rumpf_a@web.de>2017-12-31 09:28:51 +0100
commitd1e10f9aa3e033414fb924e4f90736e46fde8256 (patch)
tree62fc6cddcb9c3d8cd023a80296cd226f90a8cfe6 /tests
parenta521f983921878e613c1b89f40c081eb5393055b (diff)
downloadNim-d1e10f9aa3e033414fb924e4f90736e46fde8256.tar.gz
Fixed mutex usage in SharedList and SharedTable. Closes #6988 (#6990)
Diffstat (limited to 'tests')
-rw-r--r--tests/collections/ttables.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/collections/ttables.nim b/tests/collections/ttables.nim
index 2b8af5bd9..7fe4c79b1 100644
--- a/tests/collections/ttables.nim
+++ b/tests/collections/ttables.nim
@@ -213,7 +213,8 @@ block clearCountTableTest:
   assert t.len() == 0
 
 block withKeyTest:
-  var t = initSharedTable[int, int]()
+  var t: SharedTable[int, int]
+  t.init()
   t.withKey(1) do (k: int, v: var int, pairExists: var bool):
     assert(v == 0)
     pairExists = true