-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(node): Fix config wizard storage path tests (#2906)
Fixed config wizard storage path assertions to be compatible with Mac OS. In the assertion we compare the real path to a symbolic link in Mac OS and thererore the test fails. ## Change Now compares normalized paths, i.e. uses `realpathSync` which resolves symbolic links. ## Error ``` expect(received).toInclude(expected) Expected string to include: "streamr-node /var/folders/_1/sztmfs_j15zg4t29k2nql0040000gn/T/test-config-wizardhSM4Wz/config.json " Received: "Welcome to the Streamr Network! This Config Wizard will help you setup your node.····· The steps are documented here: https://docs.streamr.network/guides/how-to-run-streamr-node#config-wizard ✓ Congratulations, you've setup your Streamr node! Your node address is 0x909DC59FF7A3b23126bc6F86ad44dD808fd424Dc Your node's generated name is Mountain Until Gun You can start your Streamr node now with streamr-node /var/folders/1/sztmfsj15zg4t29k2nql0040000gn/T/test-config-wizardhSM4Wz/config.json····· For environment specific run instructions, see https://docs.streamr.network/guides/how-to-run-streamr-node" 158 | expect(summary).toInclude(`generated name is Mountain Until Gun\n`) 159 | > 160 | expect(summary).toInclude(`streamr-node ${storagePath}\n`) | ^ 161 | }) 162 | 163 | it('prints out the generated private key onto the screen if told to', async () => { at Object.<anonymous> (test/unit/ConfigWizard.test.ts:160:25) ```
- Loading branch information
Showing
1 changed file
with
32 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters