[Chore] Gen keys once in test-morley-client.bats
Description
Problem: scripts/test-morley-client.bats generates sender/receiver keys n+1 times, where n is the number of tests. Since key generation/ revelation takes a considerable amount of time, it would be better to only do this once
Solution: since bats v1.2.1, a setup_file hook exists that runs only once per testsuite. Use it for initial setup.
Related issue(s)
Initially brought up in #640 (comment 643038630)
✅ 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
N/A, this is a test script update
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.