Skip to content

[#727] Run PrefixNetworkScenario in clean environment each time

Description

Problem: test_PrefixNetworkScenario fails if it's run in the same tezos-client environment more than once with TwoMoneybagKeys exception.

Solution: Since we're mangling the network env anyway, we can just create a new tmpdir for test_PrefixNetworkScenario to run in each time. We do need to remove the directory after the test has run.

Related issue(s)

Resolves #727 (closed)

That said, the issue description wasn't updated after a little discussion.

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Nikolay Yakimov

Merge request reports