diff options
author | Thomas Arts <[email protected]> | 2014-09-11 19:52:21 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2014-09-18 10:09:35 +0200 |
commit | fccdd825e41006b36137cebf4b2059682f82c2eb (patch) | |
tree | d667b0f4043f491e2da9841433ef60d430075027 /lib | |
parent | f536f86ebe3face7164c63d7455389968be94203 (diff) | |
download | otp-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')
-rw-r--r-- | lib/ssh/test/property_test/ssh_eqc_client_server.erl | 2 |
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()}] ). |