Merge pull request #518 from adhawkins/busybox-tests

Allow tests to run on systems that use busybox (such as Alpine)
This commit is contained in:
Adnan Hajdarević 2021-03-15 22:43:13 +01:00 committed by GitHub
commit e329b6d9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
webhook_test.go Normal file → Executable file
View file

@ -33,7 +33,8 @@ func TestStaticParams(t *testing.T) {
spHeaders["Accept"] = "*/*"
// 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 {
t.Fatalf("%v", err)
}