Skip to content

Commit 25f7c7a

Browse files
Increase timeout for getting updated password score
1 parent 6fc4ab3 commit 25f7c7a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/org/labkey/test/components/core/login/SetPasswordForm.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ public void assertPasswordGuidance(@LoggedParam String password, @LoggedParam St
113113

114114
private void assertGuidanceMessage(String expectedGuidance)
115115
{
116-
Awaitility.await().atMost(Duration.ofSeconds(2)).untilAsserted(() ->
116+
// Though it's usually quite fast, sometimes the password scoring API takes ~4 sec on TeamCity, so give it
117+
// enough time to refresh
118+
Awaitility.await().atMost(Duration.ofSeconds(10)).untilAsserted(() ->
117119
assertEquals("Strength guidance for password", expectedGuidance, elementCache().strengthGuidance.getText()));
118120
}
119121

0 commit comments

Comments
 (0)