Skip to content

Commit 4fcf7ed

Browse files
author
Rohit Grover
committed
test_resetAndInitialize: synchronous completion of initialize() is expected to return 1
1 parent ee42f87 commit 4fcf7ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/storage/TESTS/flash_journal/basicAPI/basicAPI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ control_t test_resetAndInitialize(const size_t call_count)
159159
if (rc == JOURNAL_STATUS_OK) {
160160
return CaseTimeout(200);
161161
}
162+
TEST_ASSERT_EQUAL(1, rc); /* synchronous completion of initialize() is expected to return 1 */
162163

163164
/* fall through */
164165
case NEEDS_VERIFICATION_FOLLOWING_INITIALIZE:
@@ -324,6 +325,7 @@ control_t test_initializeAfterLogSmallAndCommit(const size_t call_count)
324325
printf("asynchronous_ops for init\n");
325326
return CaseTimeout(200) + CaseRepeatAll;
326327
}
328+
TEST_ASSERT_EQUAL(1, rc); /* synchronous completion of initialize() is expected to return 1 */
327329
}
328330

329331
FlashJournal_Info_t info;
@@ -440,6 +442,7 @@ control_t test_initializeAfterLogLargeAndCommit(const size_t call_count)
440442
printf("test_initializeAfterLogLargeAndCommit: asynchronous_ops for init\n");
441443
return CaseTimeout(200) + CaseRepeatAll;
442444
}
445+
TEST_ASSERT_EQUAL(1, rc); /* synchronous completion of initialize() is expected to return 1 */
443446
}
444447

445448
FlashJournal_Info_t info;

0 commit comments

Comments
 (0)