Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit 2c5ca6d

Browse files
authored
Merge pull request #1177 from stormpath/ChangePasswordIT_Fix
Updated ChangeIT test to key off subject rather than from address as …
2 parents ad58f11 + 2284196 commit 2c5ca6d

File tree

1 file changed

+2
-2
lines changed
  • extensions/spring/stormpath-spring-security-webmvc/src/test/groovy/com/stormpath/spring/config

1 file changed

+2
-2
lines changed

extensions/spring/stormpath-spring-security-webmvc/src/test/groovy/com/stormpath/spring/config/AbstractClientIT.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ abstract class AbstractClientIT extends AbstractTestNGSpringContextTests {
8888

8989
while (emailId == null && count++ < 30) {
9090
for (JsonNode emailNode : emailList) {
91-
String mailFrom = emailNode.get("mail_from").asText()
91+
String mailSubject = emailNode.get("mail_subject").asText()
9292
String localEmailId = emailNode.get("mail_id").asText()
93-
if (mailFrom.contains("stormpath.com")) {
93+
if (mailSubject.toLowerCase().contains("reset your password")) {
9494
emailId = localEmailId
9595
break
9696
}

0 commit comments

Comments
 (0)