Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test-refactor/client-server/wh_test_nvm_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ static int _runNvmObjectTest(whClientContext* ctx,
ctx, (whNvmId)(id_base + i)));
}

/* Cleanup -> Init round-trip leaves NVM in a usable state
* with no leftovers. */
/* Cleanup -> Init round-trip wipes all objects and leaves NVM usable. As a
* full wipe also clears objects left by earlier tests, the available count
* is at least the starting baseline rather than exactly equal to it. */
WH_TEST_RETURN_ON_FAIL(wh_Client_NvmCleanup(ctx, &server_rc));
WH_TEST_ASSERT_RETURN(server_rc == WH_ERROR_OK);

Expand All @@ -266,7 +267,7 @@ static int _runNvmObjectTest(whClientContext* ctx,
ctx, &server_rc, &avail_size, &avail_objects,
&reclaim_size, &reclaim_objects));
WH_TEST_ASSERT_RETURN(server_rc == WH_ERROR_OK);
WH_TEST_ASSERT_RETURN(avail_objects == baseline);
WH_TEST_ASSERT_RETURN(avail_objects >= baseline);

return WH_ERROR_OK;
}
Expand Down
Loading