test(raft-apply-decoupling): idempotent and ordered re-application of apply seam (task 2.4)
Add test_apply_reapply_idempotency.c (3 tests, no production changes): triple-reapplication of an identical job submit with hook-count and pointer-identity assertions across every call, the NOOP_DUPLICATE guard branch (untested by task 2.2), and the task's named scenario -- real SUBMIT then real FINISH then a stale out-of-order START, all through the real apply_committed_entry() dispatch -- confirming the job stays terminal with no spurious notification. Closes out task-group 2 (shared apply seam for committed entries).
This commit is contained in:
parent
50d016d905
commit
8febd663d5
4 changed files with 386 additions and 2 deletions
|
|
@ -80,6 +80,7 @@ extern void test_persist_snapshot_entities(void);
|
|||
extern void test_apply_seam(void);
|
||||
extern void test_apply_committed_entry(void);
|
||||
extern void test_replay_apply_seam(void);
|
||||
extern void test_apply_reapply_idempotency(void);
|
||||
|
||||
void setUp(void) { return; }
|
||||
|
||||
|
|
@ -229,6 +230,7 @@ int main(int argc, char* argv[])
|
|||
TEST(test_apply_seam);
|
||||
TEST(test_apply_committed_entry);
|
||||
TEST(test_replay_apply_seam);
|
||||
TEST(test_apply_reapply_idempotency);
|
||||
|
||||
return UNITY_END();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue