diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2026-07-15 11:13:59 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2026-07-15 11:13:59 +0200 |
| commit | 1d0662477c73d9e416fc1637c9d97153746d274f (patch) | |
| tree | 15355f8b444ee8e155c38691d0ba52f8f006a795 /src/widgets | |
| parent | chore(deps): bump clechasseur/rs-clippy-check from 6.0.4 to 6.0.5 (#280) (diff) | |
| download | sl0pstatus-1d0662477c73d9e416fc1637c9d97153746d274f.tar.gz sl0pstatus-1d0662477c73d9e416fc1637c9d97153746d274f.tar.xz sl0pstatus-1d0662477c73d9e416fc1637c9d97153746d274f.zip | |
fix(command): unit tests
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/command.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/command.rs b/src/widgets/command.rs index 304bf23..245c5fc 100644 --- a/src/widgets/command.rs +++ b/src/widgets/command.rs @@ -522,7 +522,7 @@ mod test { env: None, cwd: None, follow_focus_cwd: false, - interval: 1, + interval: 5, render_mode: RenderMode::Static, click_action: "".to_owned(), hide_on_empty_stdout: false, @@ -554,7 +554,7 @@ mod test { #[rstest] // no result, interval 1 second - #[case(1, &ZellijState::default(), true)] + #[case(1, &ZellijState{ plugin_uuid: "test_command_result_1".to_owned(), ..Default::default() }, true)] // only run once without a result #[case(0, &ZellijState::default(), true)] // do not run with run once and result @@ -608,5 +608,7 @@ mod test { state, ); assert_eq!(res, expected); + + release_command_lock(&state, "test"); } } |
