Browse Source

test: Move ECC_Start() call into src/gtest/main.cpp

metaverse
Jack Grigg 6 years ago
parent
commit
3fd0a269e1
No known key found for this signature in database GPG Key ID: 1B8D649257DB0829
  1. 3
      src/gtest/main.cpp
  2. 2
      src/wallet/gtest/test_wallet_zkeys.cpp

3
src/gtest/main.cpp

@ -1,5 +1,6 @@
#include "gmock/gmock.h"
#include "crypto/common.h"
#include "key.h"
#include "pubkey.h"
#include "zcash/JoinSplit.hpp"
#include "util.h"
@ -20,6 +21,8 @@ ZCJoinSplit* params;
int main(int argc, char **argv) {
assert(init_and_check_sodium() != -1);
ECC_Start();
libsnark::default_r1cs_ppzksnark_pp::init_public_params();
libsnark::inhibit_profiling_info = true;
libsnark::inhibit_profiling_counters = true;

2
src/wallet/gtest/test_wallet_zkeys.cpp

@ -259,8 +259,6 @@ TEST(wallet_zkeys_tests, WriteViewingKeyDirectToDB) {
* This test covers methods on CWalletDB to load/save crypted z keys.
*/
TEST(wallet_zkeys_tests, write_cryptedzkey_direct_to_db) {
ECC_Start();
SelectParams(CBaseChainParams::TESTNET);
// Get temporary and unique path for file.

Loading…
Cancel
Save