Skip to content
Commit d64748cc authored by Seppo Takalo's avatar Seppo Takalo Committed by Henrik Brix Andersen
Browse files

tests: coap_client: Refactor tests



Refactor tests to be a bit shorter, so its easier to read
and copy-paste for a new testcase

All idioms like "ret = somecall(); zasser.." are replaced with just
"zassert_ok(some_call());"

Commonly used structures are global and initialized once.

To avoid cross-test side-effects, suite_after-function is added
to cleanup all requests.

Signed-off-by: default avatarSeppo Takalo <seppo.takalo@nordicsemi.no>
parent 34a6d5a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment