1
0
Fork 0
forked from lthn/blockchain

fixed broken unit test

This commit is contained in:
cryptozoidberg 2020-05-29 22:13:52 +02:00
parent 1458032e93
commit 979649f49c
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -35,7 +35,7 @@ TEST(wallet_chain_shortener, wallet_chain_shortener)
LOG_PRINT_L0("{" << *((uint64_t*)&id) << "}{" << counter - *((uint64_t*)&id) << "}" << ENDL);
}
for (counter = counter - 10000 + 1; counter != 1000000; counter++)
for (counter = counter - 10000; counter != 1000000; counter++)
{
crypto::hash id_ = AUTO_VAL_INIT(id_);
*((uint64_t*)&id_) = counter;