fix test
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -11,6 +11,7 @@ fn test_inhibit_cli_parsing() {
|
|||||||
why,
|
why,
|
||||||
who,
|
who,
|
||||||
daemon,
|
daemon,
|
||||||
|
stop: _,
|
||||||
} = cli.command
|
} = cli.command
|
||||||
{
|
{
|
||||||
assert_eq!(command, vec!["sleep".to_string(), "10".to_string()]);
|
assert_eq!(command, vec!["sleep".to_string(), "10".to_string()]);
|
||||||
@@ -30,8 +31,9 @@ fn test_inhibit_daemon_parsing() {
|
|||||||
if let Commands::Inhibit {
|
if let Commands::Inhibit {
|
||||||
command,
|
command,
|
||||||
why,
|
why,
|
||||||
who,
|
who: _,
|
||||||
daemon,
|
daemon,
|
||||||
|
stop: _,
|
||||||
} = cli.command
|
} = cli.command
|
||||||
{
|
{
|
||||||
assert!(command.is_empty());
|
assert!(command.is_empty());
|
||||||
|
|||||||
Reference in new issue
Block a user