nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitrpg&nitcorn: replace `rand` with `NIT_TESTING_ID` for their tests
[nit.git]
/
tests
/
test_nitcorn.nit
diff --git
a/tests/test_nitcorn.nit
b/tests/test_nitcorn.nit
index
e4088a2
..
5f2ca1c
100644
(file)
--- a/
tests/test_nitcorn.nit
+++ b/
tests/test_nitcorn.nit
@@
-17,8
+17,8
@@
import pthreads
redef class Sys
var iface: String is lazy do
redef class Sys
var iface: String is lazy do
- srand
- return "localhost:{10000+20000.rand}"
+ var testid = "NIT_TESTING_ID".environ.to_i
+ return "localhost:{10000+testid}"
end
var fs_path: String = getcwd / "../lib/nitcorn/examples/www/hello_world/dir" is lazy
end
var fs_path: String = getcwd / "../lib/nitcorn/examples/www/hello_world/dir" is lazy