Skip to content

Commit 1bb88b7

Browse files
committedMay 2, 2024
Fix version lambda capture in a way more MSVC-bug-friendly
1 parent 119d5e7 commit 1bb88b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/herder/test/HerderTests.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -5856,13 +5856,12 @@ TEST_CASE("exclude transactions by operation type", "[herder]")
58565856
// ledger `n-1` when closing ledger `n`
58575857
TEST_CASE("SCP message capture from previous ledger", "[herder]")
58585858
{
5859-
constexpr uint32_t version =
5860-
static_cast<uint32_t>(SOROBAN_PROTOCOL_VERSION);
5859+
uint32_t version = static_cast<uint32_t>(SOROBAN_PROTOCOL_VERSION);
58615860

58625861
// Initialize simulation
58635862
auto networkID = sha256(getTestConfig().NETWORK_PASSPHRASE);
58645863
auto simulation = std::make_shared<Simulation>(
5865-
Simulation::OVER_LOOPBACK, networkID, [](int i) {
5864+
Simulation::OVER_LOOPBACK, networkID, [version](int i) {
58665865
auto cfg = getTestConfig(i, Config::TESTDB_ON_DISK_SQLITE);
58675866
cfg.TESTING_UPGRADE_LEDGER_PROTOCOL_VERSION = version;
58685867
return cfg;

0 commit comments

Comments
 (0)
Please sign in to comment.