Commit ebf4bb3b authored by ale's avatar ale
Browse files

Fix the activation_test

Extract the right link from the email (not the main website URL).
parent d1f6b9cb
Pipeline #409 passed with stages
in 1 minute and 42 seconds
......@@ -12,7 +12,8 @@ import (
"golang.org/x/oauth2/clientcredentials"
)
var linkRx = regexp.MustCompile(`https?://\S+`)
// Regexp to extract the activation link from the email.
var linkRx = regexp.MustCompile(`https?://\S+/callback/activation\S+`)
func TestAccountActivation_SendsEmail(t *testing.T) {
srv, h, mailer := newTestAppWithHydraAndMailer(t)
......
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