mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
respect localized output of rmdir
This commit is contained in:
@ -29,7 +29,7 @@ func TestOSCommandRunCommandWithOutput(t *testing.T) {
|
|||||||
{
|
{
|
||||||
"rmdir unexisting-folder",
|
"rmdir unexisting-folder",
|
||||||
func(output string, err error) {
|
func(output string, err error) {
|
||||||
assert.Regexp(t, ".*No such file or directory.*", err.Error())
|
assert.Regexp(t, "rmdir: .* 'unexisting-folder': .*", err.Error())
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ func TestOSCommandRunCommand(t *testing.T) {
|
|||||||
{
|
{
|
||||||
"rmdir unexisting-folder",
|
"rmdir unexisting-folder",
|
||||||
func(err error) {
|
func(err error) {
|
||||||
assert.Regexp(t, ".*No such file or directory.*", err.Error())
|
assert.Regexp(t, "rmdir: .* 'unexisting-folder': .*", err.Error())
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user