aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/property_test
diff options
context:
space:
mode:
authorThomas Arts <[email protected]>2014-09-11 19:52:21 +0200
committerHans Nilsson <[email protected]>2014-09-18 10:09:35 +0200
commitfccdd825e41006b36137cebf4b2059682f82c2eb (patch)
treed667b0f4043f491e2da9841433ef60d430075027 /lib/ssh/test/property_test
parentf536f86ebe3face7164c63d7455389968be94203 (diff)
downloadotp-fccdd825e41006b36137cebf4b2059682f82c2eb.tar.gz
otp-fccdd825e41006b36137cebf4b2059682f82c2eb.tar.bz2
otp-fccdd825e41006b36137cebf4b2059682f82c2eb.zip
No side effects in function arguments
We want to be able to see tests with eqc_gen:sample, we also want to be able to re-run tests. Side effects are no good idea if these goals need to be met. Therefore, we replace the side effect to ask for a port by making a symbolic call of this. Nicer solutions are possible, but at least we can now re-run the test case, and therefore shrink.
Diffstat (limited to 'lib/ssh/test/property_test')
-rw-r--r--lib/ssh/test/property_test/ssh_eqc_client_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/test/property_test/ssh_eqc_client_server.erl b/lib/ssh/test/property_test/ssh_eqc_client_server.erl
index 40782cd034..3fc7a15dd0 100644
--- a/lib/ssh/test/property_test/ssh_eqc_client_server.erl
+++ b/lib/ssh/test/property_test/ssh_eqc_client_server.erl
@@ -75,7 +75,7 @@
-define(SUBSYSTEMS, ["echo1", "echo2", "echo3", "echo4"]).
--define(SERVER_ADDRESS, { {127,1,1,1}, inet_port({127,1,1,1}) }).
+-define(SERVER_ADDRESS, { {127,1,1,1}, {call, ?MODULE, inet_port, [{127,1,1,1}]} }).
-define(SERVER_EXTRA_OPTIONS, [{parallel_login,bool()}] ).