From 181672afcc171d7e9718cb3420d7d19585fb7fe6 Mon Sep 17 00:00:00 2001 From: Andy Hawkins Date: Sat, 13 Mar 2021 16:02:44 +0000 Subject: [PATCH] Allow tests to run on systems that use busybox (such as Alpine) --- webhook_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 webhook_test.go diff --git a/webhook_test.go b/webhook_test.go old mode 100644 new mode 100755 index a81d36e..50fef52 --- a/webhook_test.go +++ b/webhook_test.go @@ -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) }