tests: lib: os: onoff: address Coverity complaint
Coverity believes that a field is null when it isn't. Duplicate the assert from 20 lines up in hopes it learns better. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
eddd98f811
commit
e11262c13e
1 changed files with 2 additions and 0 deletions
|
@ -805,6 +805,8 @@ static void test_async(void)
|
|||
cli[0].result = 1 + start_state.retval;
|
||||
zassert_equal(cli_result(&cli[0]), -EAGAIN,
|
||||
"fetch failed");
|
||||
zassert_false(start_state.notify == NULL,
|
||||
"start invoked");
|
||||
notify(&start_state);
|
||||
zassert_equal(cli_result(&cli[0]), start_state.retval,
|
||||
"start notified");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue