Parcourir la source

[trac388] Enable port config test in resolver

It needed to close sockets to be able to successfully roll back in case
of failure.
Michal 'vorner' Vaner il y a 14 ans
Parent
commit
199599a979
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 4
      src/bin/resolver/tests/resolver_config_unittest.cc

+ 1 - 4
src/bin/resolver/tests/resolver_config_unittest.cc

@@ -174,7 +174,7 @@ TEST_F(ResolverConfig, listenAddresses) {
     EXPECT_TRUE(server.getListenAddresses().empty());
     EXPECT_TRUE(server.getListenAddresses().empty());
 }
 }
 
 
-TEST_F(ResolverConfig, DISABLED_listenAddressConfig) {
+TEST_F(ResolverConfig, listenAddressConfig) {
     // Try putting there some address
     // Try putting there some address
     ElementPtr config(Element::fromJSON("{"
     ElementPtr config(Element::fromJSON("{"
         "\"listen_on\": ["
         "\"listen_on\": ["
@@ -192,9 +192,6 @@ TEST_F(ResolverConfig, DISABLED_listenAddressConfig) {
 
 
     // As this is example address, the machine should not have it on
     // As this is example address, the machine should not have it on
     // any interface
     // any interface
-    // FIXME: This test aborts, because it tries to rollback and
-    //     it is impossible, since the sockets are not closed.
-    //     Once #388 is solved, enable this test.
     config = Element::fromJSON("{"
     config = Element::fromJSON("{"
         "\"listen_on\": ["
         "\"listen_on\": ["
         "   {"
         "   {"