]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
When there is a single rrset, we can perform an equality check.
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 15 Jul 2026 12:27:25 +0000 (14:27 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 15 Jul 2026 12:27:25 +0000 (14:27 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
regression-tests.api/test_Zones.py

index 5b0cbdf4579e48b600aa7dcbd2a0f5f8579b31be..9098d7342fa97ca8e2bc26dc81d81098b297dad9 100644 (file)
@@ -1546,7 +1546,7 @@ $NAME$  1D  IN  SOA ns1.example.org. hostmaster.example.org. (
         self.assert_success(r)
         # verify that (only) the new record is there
         data = self.get_zone(name)
-        self.assertCountEqual(get_rrset(data, name, "NS")["records"], rrset["records"])
+        self.assertEqual(get_rrset(data, name, "NS")["records"], rrset["records"])
 
     def test_zone_rr_update_lua(self):
         # Important to test with LUA records, as their contents should not be