gnu: gimp: Ship a copy of the gegl patch.
[jackhill/guix/guix.git] / gnu / packages / patches / docker-fix-tests.patch
CommitLineData
f87ea24a
DM
1Author: Danny Milosavljevic <dannym@scratchpost.org>
2The socket name ended up too long inside the container.
3Use a shorter one.
4--- a/pkg/authorization/authz_unix_test.go 2019-01-10 01:55:02.997985947 +0100
5+++ b/pkg/authorization/authz_unix_test.go 2019-01-10 02:03:21.177439757 +0100
6@@ -24,7 +24,7 @@
7 )
8
9 const (
10- pluginAddress = "authz-test-plugin.sock"
11+ pluginAddress = "/tmp/authz-test-plugin.sock"
12 )
13
14 func TestAuthZRequestPluginError(t *testing.T) {
15@@ -263,12 +263,7 @@
16
17 // createTestPlugin creates a new sample authorization plugin
18 func createTestPlugin(t *testing.T) *authorizationPlugin {
19- pwd, err := os.Getwd()
20- if err != nil {
21- t.Fatal(err)
22- }
23-
24- client, err := plugins.NewClient("unix:///"+path.Join(pwd, pluginAddress), &tlsconfig.Options{InsecureSkipVerify: true})
25+ client, err := plugins.NewClient("unix:///"+path.Join("/", pluginAddress), &tlsconfig.Options{InsecureSkipVerify: true})
26 if err != nil {
27 t.Fatalf("Failed to create client %v", err)
28 }