Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
accountserver
Commits
5bc7e4ec
Commit
5bc7e4ec
authored
Jan 09, 2021
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix integration test
parent
5245a90d
Pipeline
#10409
passed with stages
in 1 minute and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
integrationtest/integration_test.go
integrationtest/integration_test.go
+4
-3
No files found.
integrationtest/integration_test.go
View file @
5bc7e4ec
...
...
@@ -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
.
NewUNIXSocket
Server
(
socketPath
,
unix
.
NewLineServer
(
authserver
.
NewSocketServer
(
authSrv
))
)
l
,
err
:=
lineproto
.
NewUNIXSocket
Listener
(
socketPath
)
if
err
!=
nil
{
t
.
Fatal
(
"
unix
.NewUNIXSocket
Serv
er()"
,
err
)
t
.
Fatal
(
"
lineproto
.NewUNIXSocket
Listen
er()"
,
err
)
}
sockSrv
:=
lineproto
.
NewServer
(
"unix"
,
l
,
lineproto
.
NewLineServer
(
authserver
.
NewSocketServer
(
authSrv
)))
go
func
()
{
sockSrv
.
Serve
()
// nolint: errcheck
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment