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:
Peter Bigot 2020-02-03 10:52:16 -06:00 committed by Anas Nashif
commit e11262c13e

View file

@ -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");