test: refactor: declare NoMalleation const auto

To avoid linker error on some platforms:
    https://github.com/bitcoin/bitcoin/pull/21526#discussion_r709404714

Co-authored-by: Russ Yanofsky <russ@yanofsky.org>
This commit is contained in:
James O'Beirne 2021-09-15 15:39:40 -04:00
parent 071200993f
commit 298bf5d563
No known key found for this signature in database
GPG key ID: 7A935DADB2C44F05

View file

@ -16,7 +16,7 @@
#include <boost/test/unit_test.hpp>
auto NoMalleation = [](CAutoFile& file, SnapshotMetadata& meta){};
const auto NoMalleation = [](CAutoFile& file, SnapshotMetadata& meta){};
/**
* Create and activate a UTXO snapshot, optionally providing a function to