Skip to content

Fix intermittent test crash - #6268

Merged
sophiajt merged 2 commits into
nushell:mainfrom
sophiajt:fix_test_crash
Aug 9, 2022
Merged

sophiajt merged 2 commits into
nushell:mainfrom
sophiajt:fix_test_crash

Conversation

@sophiajt

@sophiajt sophiajt commented Aug 9, 2022

Copy link
Copy Markdown
Contributor

Description

This reverts #6206, which unfortunately was causing an intermittent test crash on Linux (roughly about 50% of the time the tests would crash)

Tests

Make sure you've done the following:

  • Add tests that cover your changes, either in the command examples, the crate/tests folder, or in the /tests folder.
  • Try to think about corner cases and various ways how your changes could break. Cover them with tests.
  • If adding tests is not possible, please document in the PR body a minimal example with steps on how to reproduce so one can verify your change works.

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace --features=extra to check that all the tests pass

@hustcer

hustcer commented Aug 9, 2022

Copy link
Copy Markdown
Contributor

@WindSoilder can we fix the test crash ?Then we needn't revert this PR

@WindSoilder

Copy link
Copy Markdown
Contributor

Sorry, I need more investigate on improvement of #6206

I'm ok to revert it for now

@sophiajt
sophiajt merged commit 555d9ee into nushell:main Aug 9, 2022
@sophiajt
sophiajt deleted the fix_test_crash branch August 9, 2022 02:06
@sophiajt

sophiajt commented Aug 9, 2022

Copy link
Copy Markdown
Contributor Author

@WindSoilder - sounds good. If you want to try again, I'd be happy to help test

WindSoilder added a commit to WindSoilder/nushell that referenced this pull request Aug 9, 2022
fdncred pushed a commit that referenced this pull request Aug 18, 2022
…external command (#6273)

* Revert "Fix intermittent test crash (#6268)"

This reverts commit 555d9ee.

* make a working version again

* try second impl

* add

* fmt

* check stdin is atty before acquire stdin

* add libc

* clean comment

* fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants