Commit 5bc7e4ec authored by ale's avatar ale

Fix integration test

parent 5245a90d
Pipeline #10409 passed with stages
in 1 minute and 36 seconds
......@@ -22,8 +22,8 @@ import (
"git.autistici.org/ai3/accountserver/server"
ct "git.autistici.org/ai3/go-common/ldap/compositetypes"
"git.autistici.org/ai3/go-common/pwhash"
"git.autistici.org/ai3/go-common/unix"
"git.autistici.org/ai3/go-common/userenckey"
"git.autistici.org/id/auth/lineproto"
authserver "git.autistici.org/id/auth/server"
"git.autistici.org/id/go-sso"
"golang.org/x/crypto/ed25519"
......@@ -83,10 +83,11 @@ func withAuthServer(t testing.TB, configFiles map[string]string) (func(), string
if err != nil {
t.Fatal("authserver.NewServer()", err)
}
sockSrv, err := unix.NewUNIXSocketServer(socketPath, unix.NewLineServer(authserver.NewSocketServer(authSrv)))
l, err := lineproto.NewUNIXSocketListener(socketPath)
if err != nil {
t.Fatal("unix.NewUNIXSocketServer()", err)
t.Fatal("lineproto.NewUNIXSocketListener()", err)
}
sockSrv := lineproto.NewServer("unix", l, lineproto.NewLineServer(authserver.NewSocketServer(authSrv)))
go func() {
sockSrv.Serve() // nolint: errcheck
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment