cleanup(shellx): do not directly depend on apex/log (#357)
This commit is contained in:
parent
944d3c53fa
commit
39aec6677d
8 changed files with 52 additions and 39 deletions
|
|
@ -291,7 +291,7 @@ func TestHijackHTTP(t *testing.T) {
|
|||
if err := policy.Apply(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = shellx.Run("sudo", "-u", "nobody", "--",
|
||||
err = shellx.Run(log.Log, "sudo", "-u", "nobody", "--",
|
||||
"curl", "-sf", "http://example.com")
|
||||
if err == nil {
|
||||
t.Fatal("expected an error here")
|
||||
|
|
@ -330,7 +330,7 @@ func TestHijackHTTPS(t *testing.T) {
|
|||
if err := policy.Apply(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = shellx.Run("sudo", "-u", "nobody", "--",
|
||||
err = shellx.Run(log.Log, "sudo", "-u", "nobody", "--",
|
||||
"curl", "-sf", "https://example.com")
|
||||
if err == nil {
|
||||
t.Fatal("expected an error here")
|
||||
|
|
|
|||
Loading…
Reference in a new issue