Skip to content

Commit 7189646

Browse files
committed
[nrf fromtree] 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: Seppo Takalo <[email protected]> (cherry picked from commit d64748c)
1 parent 08e2edd commit 7189646

File tree

1 file changed

+119
-475
lines changed
  • tests/net/lib/coap_client/src

1 file changed

+119
-475
lines changed

0 commit comments

Comments
 (0)