nym: fix tests

A lot of tests are using `debug_assert!` which isn't available in
release-mode.
This commit is contained in:
Maximilian Bosch 2020-05-13 22:19:16 +02:00
parent 0d7f889607
commit e49f3a4760
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -24,6 +24,8 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ];
checkType = "debug";
/*
Nym's test presence::converting_mixnode_presence_into_topology_mixnode::it_returns_resolved_ip_on_resolvable_hostname tries to resolve nymtech.net.
Since there is no external DNS resolution available in the build sandbox, we point cargo and its children (that's what we remove the 'unsetenv' call for) to a hosts file in which we statically resolve nymtech.net.