Permalink
Browse files

fix unit test (ts_client:set_dynvars signature has changed)

  • Loading branch information...
1 parent da9fe86 commit 64c85dd7f8dfa2bd042722c0d2ec90827e8559fb @nniclausse nniclausse committed Aug 17, 2012
Showing with 7 additions and 7 deletions.
  1. +6 −6 src/test/ts_test_search.erl
  2. +1 −1 src/tsung/ts_client.erl
@@ -265,32 +265,32 @@ parse_subst_regexp_sid_test() ->
dynvars_urandom_test() ->
myset_env(),
- ?assertMatch([<<"qxvmvtglimieyhemzlxc">>],ts_client:set_dynvars(urandom,{string,20},[toto],[])).
+ ?assertMatch([<<"qxvmvtglimieyhemzlxc">>],ts_client:set_dynvars(urandom,{string,20},[toto],[],{})).
dynvars_urandom_neg_test() ->
myset_env(),
- ?assertError(function_clause,ts_client:set_dynvars(urandom,{string,-3},[toto],[])).
+ ?assertError(function_clause,ts_client:set_dynvars(urandom,{string,-3},[toto],[],{})).
dynvars_urandom2_test() ->
myset_env(),
- ?assertMatch([<<"qxvmvtglimieyhemzlxc">>,<<"qxvmvtglimieyhemzlxc">>],ts_client:set_dynvars(urandom,{string,20},[toto,tutu],[])).
+ ?assertMatch([<<"qxvmvtglimieyhemzlxc">>,<<"qxvmvtglimieyhemzlxc">>],ts_client:set_dynvars(urandom,{string,20},[toto,tutu],[],{})).
dynvars_random_test() ->
myset_env(),
- [String] = ts_client:set_dynvars(random,{string,20},[toto],[]),
+ [String] = ts_client:set_dynvars(random,{string,20},[toto],[],{}),
?assertMatch(20,length(binary_to_list(String))).
dynvars_random2_test() ->
myset_env(),
- [String,String2] = ts_client:set_dynvars(random,{string,20},[toto,titi],[]),
+ [String,String2] = ts_client:set_dynvars(random,{string,20},[toto,titi],[],{}),
?assertMatch({20,20},{length(binary_to_list(String)),length(binary_to_list(String2))}).
dynvars_jsonpath_test() ->
myset_env(),
Data="\r\n\r\n{\"titi\": [{\"val\": 123, \"name\": \"foo\"}, {\"val\": 42, \"name\": \"bar\"}]}",
JSONPath = "titi[?name=bar].val",
Dynvars=ts_dynvars:new(data,Data),
- ?assertEqual(42,ts_client:set_dynvars(jsonpath,{JSONPath,data},[toto],#dyndata{dynvars=Dynvars})).
+ ?assertEqual(42,ts_client:set_dynvars(jsonpath,{JSONPath,data},[toto],#dyndata{dynvars=Dynvars},{})).
%%TODO: out of order..
View
@@ -464,7 +464,7 @@ handle_next_action(State) ->
%%----------------------------------------------------------------------
%% @spec set_dynvars (Type::erlang|random|urandom|file, Args::tuple(),
%% Variables::list(), DynData::#dyndata{},
-%% Server::string(),Port:integer()}) -> integer()|binary()|list()
+%% {Server::string(),Port:integer()}) -> integer()|binary()|list()
%% @doc setting the value of several dynamic variables at once.
%% @end
%%----------------------------------------------------------------------

0 comments on commit 64c85dd

Please sign in to comment.