mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
nvs: fix nvs_get_stats unit test
Changed check for the returned parameter from ESP_ERR_NVS_PART_NOT_FOUND to ESP_ERR_NVS_NOT_INITIALIZED.
This commit is contained in:
committed by
bot
parent
c36687aac6
commit
6a4033b8a7
@@ -71,7 +71,7 @@ TEST_CASE("calculate used and free space", "[nvs]")
|
||||
TEST_ESP_ERR(nvs_get_stats(NULL, NULL), ESP_ERR_INVALID_ARG);
|
||||
nvs_stats_t stat1;
|
||||
nvs_stats_t stat2;
|
||||
TEST_ESP_ERR(nvs_get_stats(NULL, &stat1), ESP_ERR_NVS_PART_NOT_FOUND);
|
||||
TEST_ESP_ERR(nvs_get_stats(NULL, &stat1), ESP_ERR_NVS_NOT_INITIALIZED);
|
||||
TEST_ASSERT_TRUE(stat1.free_entries == 0);
|
||||
TEST_ASSERT_TRUE(stat1.namespace_count == 0);
|
||||
TEST_ASSERT_TRUE(stat1.total_entries == 0);
|
||||
|
Reference in New Issue
Block a user