@@ -228,16 +228,11 @@ control_t test_logSmallWithoutCommit(const size_t call_count)
228
228
/* initialize */
229
229
rc = FlashJournal_initialize (&journal, drv, &FLASH_JOURNAL_STRATEGY_SEQUENTIAL, callbackHandler);
230
230
TEST_ASSERT (rc >= ARM_DRIVER_OK);
231
- if (drv->GetCapabilities ().asynchronous_ops ) {
232
- if (rc == ARM_DRIVER_OK) {
233
- return CaseTimeout (200 ) + CaseRepeatAll;
234
- } else {
235
- return CaseRepeatAll;
236
- }
237
- } else {
238
- return CaseRepeatAll;
231
+ if (rc == ARM_DRIVER_OK) {
232
+ return CaseTimeout (200 ) + CaseRepeatAll;
239
233
}
240
- break ;
234
+ TEST_ASSERT_EQUAL (1 , rc); /* synchronous completion of initialize() is expected to return 1 */
235
+ return CaseRepeatAll;
241
236
242
237
case 2 :
243
238
/* log without commit */
@@ -346,15 +341,11 @@ control_t test_logLargeWithoutCommit(const size_t call_count)
346
341
case 1 :
347
342
rc = FlashJournal_initialize (&journal, drv, &FLASH_JOURNAL_STRATEGY_SEQUENTIAL, callbackHandler);
348
343
TEST_ASSERT (rc >= ARM_DRIVER_OK);
349
- if (drv->GetCapabilities ().asynchronous_ops ) {
350
- if (rc == ARM_DRIVER_OK) {
351
- return CaseTimeout (200 ) + CaseRepeatAll;
352
- } else {
353
- return CaseRepeatAll;
354
- }
355
- } else {
356
- return CaseRepeatAll;
344
+ if (rc == ARM_DRIVER_OK) {
345
+ return CaseTimeout (200 ) + CaseRepeatAll;
357
346
}
347
+ TEST_ASSERT_EQUAL (1 , rc); /* synchronous completion of initialize() is expected to return 1 */
348
+ return CaseRepeatAll;
358
349
359
350
case 2 :
360
351
memset (buffer, 0xAA , SIZEOF_LARGE_WRITE);
0 commit comments