diff options
| author | Kunal Mohan <44079328+kunalmohan@users.noreply.github.com> | 2020-12-03 20:05:16 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-03 15:35:16 +0100 |
| commit | 56c53d24870d7470a6aa336788093860ea05c9e7 (patch) | |
| tree | 68196a52a7fb1d92b106d72643b92ffb2d9d0733 /src/tests/integration | |
| parent | fix(threads): a race condition, build-times, and warnings (#79) (diff) | |
| download | sl0ppij-56c53d24870d7470a6aa336788093860ea05c9e7.tar.gz sl0ppij-56c53d24870d7470a6aa336788093860ea05c9e7.tar.xz sl0ppij-56c53d24870d7470a6aa336788093860ea05c9e7.zip | |
feat(infra): add custom panic hook. Print backtrace and thread, error info on panic. (#75)
* Add custom panic hook. Print backtrace and thread, error info on panic.
* use sync_channel and SyncSender
* nit fixes and cleanup
* disable custom panic hook while running tests
* make separate errors.rs file and address other review comments
* improve panic message
* debug: does increasing time between snapshots make tests pass? (this is temporary)
* fix(tests): suspend before sending quit command
* fix(tests): add missing use
* style(format): commas are important apparently
* fix(tests): can we get away with reducing the QUIT suspense time?
* fix(tests): can we get away with 50?
Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'src/tests/integration')
| -rw-r--r-- | src/tests/integration/layouts.rs | 2 | ||||
| -rw-r--r-- | src/tests/integration/resize_down.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/integration/layouts.rs b/src/tests/integration/layouts.rs index efc7d8b3..e65cf01e 100644 --- a/src/tests/integration/layouts.rs +++ b/src/tests/integration/layouts.rs @@ -1,4 +1,4 @@ -use ::insta::assert_snapshot; +use insta::assert_snapshot; use std::path::PathBuf; use crate::terminal_pane::PositionAndSize; diff --git a/src/tests/integration/resize_down.rs b/src/tests/integration/resize_down.rs index 7f5bd742..a0966383 100644 --- a/src/tests/integration/resize_down.rs +++ b/src/tests/integration/resize_down.rs @@ -1,4 +1,4 @@ -use ::insta::assert_snapshot; +use insta::assert_snapshot; use crate::terminal_pane::PositionAndSize; use crate::tests::fakes::FakeInputOutput; |
