Skip to content

Commit 6a9a436

Browse files
authored
Merge pull request #21 from bimberlabinternal/21.11_fb_exampledata
Attempt to debug intermittent test failures
2 parents a9906e9 + 75edcf0 commit 6a9a436

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LDK/test/src/org/labkey/test/util/external/labModules/LabModuleHelper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,9 @@ private String getExampleData(String currentWindow)
288288
String ret = null;
289289

290290
Set<String> handles = _test.getDriver().getWindowHandles();
291-
Assert.assertTrue("Expected more than one open window, was: " + handles.size(), handles.size() > 1);
292-
for (String handle : _test.getDriver().getWindowHandles())
291+
Assert.assertEquals("Expected more than one open window, found: " + StringUtils.join(handles, ","), 2, handles.size());
292+
_test.log("Current windows: [" + StringUtils.join(handles, ",") + "]");
293+
for (String handle : handles)
293294
{
294295
_test.log("window: " + handle);
295296
if (!currentWindow.equals(handle))

0 commit comments

Comments
 (0)