Why
Smoke test that Variant() (#A3) actually returns the correct enum against whatever bitcoind happens to be on PATH. Makes regressions in subversion parsing fail loudly.
Proposed change
In examples_inquisition_test.go (or a new file): TestVariantDetection:
- Start a node.
- Call
Variant(); assert it's VariantCore or VariantInquisition (not VariantUnknown).
- Log the value with
t.Logf so CI output shows which binary the suite ran against.
Port 19852.
Acceptance criteria
Notes
Depends on #A3. Closes Phase 6.1 alongside #E3 (PR5).
Why
Smoke test that
Variant()(#A3) actually returns the correct enum against whatever bitcoind happens to be on PATH. Makes regressions in subversion parsing fail loudly.Proposed change
In
examples_inquisition_test.go(or a new file):TestVariantDetection:Variant(); assert it'sVariantCoreorVariantInquisition(notVariantUnknown).t.Logfso CI output shows which binary the suite ran against.Port
19852.Acceptance criteria
VariantCore).VariantInquisition).VariantUnknownis treated as a test failure.Notes
Depends on #A3. Closes Phase 6.1 alongside #E3 (PR5).