Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-qapitol committed Jan 28, 2021
1 parent 63ee69a commit b0edf2a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/test/java/test/listeners/AlterSuiteListenerTest.java
Expand Up @@ -66,11 +66,10 @@ private Pair<TestNG, XmlSuite> runTest(Class<?> listenerClass, String... listene
XmlSuite s = createXmlSuite(ALTER_SUITE_LISTENER);
createXmlTest(s, "Test", listenerClass.getName());

if (listenerNames.length > 0) {
for (String listenerName:
listenerNames) {
s.addListener(listenerName);
}

for (String listenerName:
listenerNames) {
s.addListener(listenerName);
}
TestNG tng = create();
tng.setXmlSuites(Arrays.asList(s));
Expand Down

0 comments on commit b0edf2a

Please sign in to comment.