unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 3e3e318e251031f9c9aff5de027c686c0d65c240 990 bytes (raw)
name: patches/docker-fix-tests.patch 	 # note: path name is non-authoritative(*)

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

debug log:

solving 3e3e318e251031f9c9aff5de027c686c0d65c240 ...
found 3e3e318e251031f9c9aff5de027c686c0d65c240 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).