test: fix coap authz suite failures
This commit is contained in:
parent
55c1a1868a
commit
d6b222d1ff
|
@ -98,7 +98,7 @@ t_case_coap_publish(_) ->
|
|||
Prefix = Mod:ps_prefix(),
|
||||
Fun = fun(Channel, Token, Topic, Checker) ->
|
||||
TopicStr = binary_to_list(Topic),
|
||||
URI = Prefix ++ TopicStr ++ "?clientid=client1&token=" ++ Token,
|
||||
URI = Prefix ++ "/" ++ TopicStr ++ "?clientid=client1&token=" ++ Token,
|
||||
|
||||
Req = Mod:make_req(post, <<>>),
|
||||
Checker(Mod:do_request(Channel, URI, Req))
|
||||
|
@ -114,7 +114,7 @@ t_case_coap_subscribe(_) ->
|
|||
Prefix = Mod:ps_prefix(),
|
||||
Fun = fun(Channel, Token, Topic, Checker) ->
|
||||
TopicStr = binary_to_list(Topic),
|
||||
URI = Prefix ++ TopicStr ++ "?clientid=client1&token=" ++ Token,
|
||||
URI = Prefix ++ "/" ++ TopicStr ++ "?clientid=client1&token=" ++ Token,
|
||||
|
||||
Req = Mod:make_req(get, <<>>, [{observe, 0}]),
|
||||
Checker(Mod:do_request(Channel, URI, Req))
|
||||
|
|
Loading…
Reference in New Issue