Permalink
Browse files

Merge pull request #71 from cbrunnkvist/patch-1

* 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...
2 parents d2596b4 + 96b5d48 commit 8f5765671d0a0a84ba3b7b240a70a918b136db75 @joschi joschi committed Feb 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/test/java/org/graylog2/ConfigurationTest.java
View
2 src/test/java/org/graylog2/ConfigurationTest.java
@@ -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();

0 comments on commit 8f57656

Please sign in to comment.