Allow tests to run on systems that use busybox (such as Alpine)
This commit is contained in:
parent
d523af1b6c
commit
181672afcc
3
webhook_test.go
Normal file → Executable file
3
webhook_test.go
Normal file → Executable file
@ -33,7 +33,8 @@ func TestStaticParams(t *testing.T) {
|
|||||||
spHeaders["Accept"] = "*/*"
|
spHeaders["Accept"] = "*/*"
|
||||||
|
|
||||||
// case 2: binary with spaces in its name
|
// case 2: binary with spaces in its name
|
||||||
err := os.Symlink("/bin/echo", "/tmp/with space")
|
d1 := []byte("#!/bin/sh\n/bin/echo\n")
|
||||||
|
err := ioutil.WriteFile("/tmp/with space", d1, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("%v", err)
|
t.Fatalf("%v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user