- fixes
[oweals/gnunet.git] / src / namestore / test_namestore_api_lookup.c
index daca07b1424a748ba66da00558268aa58293ba1d..7d748447cf4053452c95b08d6ac9aee416da6a33 100644 (file)
@@ -169,10 +169,11 @@ void name_lookup_proc (void *cls,
 
     for (c = 0; c < RECORDS; c++)
     {
-      GNUNET_break (rd[c].expiration.abs_value == s_rd[c].expiration.abs_value);
-      GNUNET_break (rd[c].record_type == TEST_RECORD_TYPE);
-      GNUNET_break (rd[c].data_size == TEST_RECORD_DATALEN);
-      GNUNET_break (0 == memcmp (rd[c].data, s_rd[c].data, TEST_RECORD_DATALEN));
+      if (GNUNET_NO == GNUNET_NAMESTORE_records_cmp (&rd[c], &s_rd[c]))
+      {
+        GNUNET_break (0);
+        failed = GNUNET_YES;
+      }
     }
     found = GNUNET_YES;
     res = 0;