Skip to content

Commit

Permalink
move to unittest2
Browse files Browse the repository at this point in the history
to fix a clash with testutils
  • Loading branch information
stefantalpalaru authored and zah committed May 28, 2021
1 parent 41a0cc6 commit 5eb7fd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions faststreams.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ skipDirs = @["tests"]
requires "nim >= 1.2.0",
"stew",
"testutils",
"chronos"
"chronos",
"unittest2"

### Helper functions
proc test(env, path: string) =
Expand All @@ -20,7 +21,7 @@ proc test(env, path: string) =
lang = getEnv"TEST_LANG"

exec "nim " & lang & " " & env &
" -r --hints:off --warnings:off " & path
" -r --hints:off --skipParentCfg " & path

task test, "Run all tests":
test "-d:debug --threads:on", "tests/all_tests"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_inputs.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{.used.}

import
os, unittest, strutils, random,
os, unittest2, strutils, random,
stew/ranges/ptr_arith, testutils,
../faststreams, ../faststreams/textio

Expand Down

0 comments on commit 5eb7fd0

Please sign in to comment.