Skip to content

Commit

Permalink
Update NamespaceTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ashah-splunk committed Apr 25, 2024
1 parent c74ead0 commit c2089b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion splunk/src/test/java/com/splunk/NamespaceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ public void testNamespaceConflicts() {
Assert.assertEquals(query2, service.getSavedSearches(namespace2).get(savedSearchName).getSearch());

service.getSavedSearches(wildcardNamespace).get(savedSearchName).getSearch();
Assert.fail("Expected SplunkException about multiple keys.");
Assert.fail("Expected SplunkException about multiple keys not Throwns");
} catch (SplunkException SE){
Assert.assertNotNull(SE);
} finally {
if (service.getSavedSearches(namespace1).containsKey(savedSearchName)) {
service.getSavedSearches(namespace1).remove(savedSearchName);
Expand Down

0 comments on commit c2089b7

Please sign in to comment.