Skip to content

test: tear down the verb test store after each test in three files - #2925

Merged
gkc merged 2 commits into
trunkfrom
gkc-verb-test-teardown
Nov 5, 2026
Merged

gkc merged 2 commits into
trunkfrom
gkc-verb-test-teardown

Conversation

@gkc

@gkc gkc commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

- What I did

  • test: tear down the verb test store after each test in three files

- Why

- How I did it
See commits

- How to verify it
Tests pass, including scan_commit_log_test run straight after abstract_verb_handler_test, which was red before this change

abstract_verb_handler_test, stats_notification_test and the last group
of monitor_verb_test call verbTestsSetUp but never verbTestsTearDown, so
each leaves its Hive store behind in unit_test_storage. Every file using
verbTestsSetUp opens that same directory, so the next one to run starts
on the left-over records.

When abstract_verb_handler_test ran just before scan_commit_log_test,
the scan test's first test also counted the four enrollment records left
behind, and saw 6 commit-log entries where it expects 2.

Each now calls verbTestsTearDown after its tests, so none leaves the
store behind for the next file.
@gkc
gkc requested a review from cpswan November 5, 2026 07:26
@gkc
gkc merged commit 5ab6268 into trunk Nov 5, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants