-
Notifications
You must be signed in to change notification settings - Fork 32
Tests fail when using fish (and possibly other shells) #462
Copy link
Copy link
Open
Labels
buildM-T: Changes to compilation and CI processesM-T: Changes to compilation and CI processescode healthM-T: Test improvements and anything that improves code healthM-T: Test improvements and anything that improves code health
Description
Description
When attempting to run tests under fish, the following errors are incorrectly thrown:
--- FAIL: TestDeployCommand_DeployHook (11.06s)
--- FAIL: TestDeployCommand_DeployHook/fails_to_execute_an_unknown_script_path (2.31s)
deploy_test.go:294:
Error Trace: github.com/slackapi/slack-cli/cmd/platform/deploy_test.go:294
Error: Should be true
Test: TestDeployCommand_DeployHook/fails_to_execute_an_unknown_script_path
--- FAIL: TestDeployCommand_DeployHook/echos_stderr_output_to_standard_err (2.20s)
deploy_test.go:296:
Error Trace: github.com/slackapi/slack-cli/cmd/platform/deploy_test.go:296
Error: Received unexpected error:
Error running 'Deploy' command: exit status 127 (sdk_hook_invocation_failed)
Suggestion
Run `platform.test doctor` to check that your system dependencies are up-to-date.
Test: TestDeployCommand_DeployHook/echos_stderr_output_to_standard_err
FAIL
FAIL github.com/slackapi/slack-cli/cmd/platform 11.953s
This seems to be due to a dependency on particular shell syntax/messages in the tests.
Version
Using slack-cli v3.15.0
OS Info
Arch Linux (under WSL2)
Steps to reproduce:
Share the commands to run, source code, and project settings:
- Build.
go test ./...
Expected result:
I expected the tests to pass.
Actual result:
The tests failed, as shown above.
Requirements
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buildM-T: Changes to compilation and CI processesM-T: Changes to compilation and CI processescode healthM-T: Test improvements and anything that improves code healthM-T: Test improvements and anything that improves code health