Parcourir la source

[master] Fix invalid zone data in DataSrcClientsBuilderTest.loadZoneSQLite3

Mukund Sivaraman il y a 12 ans
Parent
commit
5d3f0570a2
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/bin/auth/tests/datasrc_clients_builder_unittest.cc

+ 2 - 1
src/bin/auth/tests/datasrc_clients_builder_unittest.cc

@@ -328,7 +328,8 @@ TEST_F(DataSrcClientsBuilderTest,
 {
     // Prepare the database first
     const std::string test_db = TEST_DATA_BUILDDIR "/auth_test.sqlite3.copied";
-    std::stringstream ss("example.org. 3600 IN SOA . . 0 0 0 0 0\n");
+    std::stringstream ss("example.org. 3600 IN SOA . . 0 0 0 0 0\n"
+                         "example.org. 3600 IN NS ns1.example.org.");
     createSQLite3DB(rrclass, Name("example.org"), test_db.c_str(), ss);
     // This describes the data source in the configuration
     const ConstElementPtr config(Element::fromJSON("{"