Skip to content

Commit

Permalink
fix tests for member-exists call
Browse files Browse the repository at this point in the history
  • Loading branch information
foosinn committed May 3, 2020
1 parent 584abdf commit 4383bd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/web/web_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ func TestWeb(t *testing.T) {
"Registrierungs-Mail konnte nicht gesendet werden",
}}
for _, o := range registerMemberOpts {
t.Logf("running %s", o.testName)
mockLdapDailer.EXPECT().Dial(context.Background()).Return(mockLdapWrap, nil)
mockLdapWrap.EXPECT().MemberExists(o.nickname).Return(false, nil)
mockLdapWrap.EXPECT().
RegisterMember(o.nickname, o.email, o.mlMail).
Return(o.token, o.err)
Expand Down

0 comments on commit 4383bd4

Please sign in to comment.