mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-01 18:22:27 +00:00
Allow tests to run on systems that use busybox (such as Alpine)
This commit is contained in:
parent
d523af1b6c
commit
181672afcc
1 changed files with 2 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue