Skip to content

Commit

Permalink
Merge pull request #71 from cbrunnkvist/patch-1
Browse files Browse the repository at this point in the history
* Fixed negative corner case in ConfigurationTest
* The test failed if there actually is a host named "this-host-hopefully-does-not-exist" or if a wildcard record is used for the local domain
  • Loading branch information
joschi committed Feb 2, 2012
2 parents d2596b4 + 96b5d48 commit 8f57656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/graylog2/ConfigurationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void testGetMongoDBReplicaSetServersMalformed() throws RepositoryExceptio

@Test
public void testGetMongoDBReplicaSetServersUnknownHost() throws RepositoryException, ValidationException {
validProperties.put("mongodb_replica_set", "this-host-hopefully-does-not-exist:27017");
validProperties.put("mongodb_replica_set", "this-host-hopefully-does-not-exist.:27017");
Configuration configuration = new Configuration();
new JadConfig(new InMemoryRepository(validProperties), configuration).process();

Expand Down

0 comments on commit 8f57656

Please sign in to comment.