Skip to content

Commit

Permalink
bypass GNS gnunet.org test as that zone is discontinued for GNUnet 0.…
Browse files Browse the repository at this point in the history
…21.0
  • Loading branch information
marty1885 committed Jan 15, 2024
1 parent 1de8193 commit 7e04828
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ ENTER_MAIN_THREAD

auto ego = co_await gnunetpp::getEgo(cfg, ego_name);
CO_REQUIRE(ego.has_value());
CHECK(ego->keyType() == GNUNET_IDENTITY_TYPE_ECDSA);

// check signing with the identity works
CHECK(ego->keyType() == GNUNET_IDENTITY_TYPE_ECDSA); // check signing with the identity works
// FIXME: This API sucks and easy to confuse types
auto sig = gnunetpp::crypto::sign(ego->privateKey().ecdsa_key, "hello world");
CHECK(sig.has_value());
Expand All @@ -199,15 +197,15 @@ ENTER_MAIN_THREAD
EXIT_MAIN_THREAD
}

DROGON_TEST(GNS)
/*DROGON_TEST(GNS)
{
ENTER_MAIN_THREAD
auto gns = std::make_shared<gnunetpp::GNS>(cfg);
auto result = co_await gns->lookup("www.gnunet.org", 10s, "ANY", false);
CO_REQUIRE(result.size() != 0);
// Won't check the actual result as it may change
EXIT_MAIN_THREAD
}
}*/

DROGON_TEST(Namestore)
{
Expand Down Expand Up @@ -341,4 +339,4 @@ int main(int argc, char** argv)
});

return status;
}
}

0 comments on commit 7e04828

Please sign in to comment.