diff --git a/src/test/app/TxQ_test.cpp b/src/test/app/TxQ_test.cpp index fa1af526b6..87041cc3d6 100644 --- a/src/test/app/TxQ_test.cpp +++ b/src/test/app/TxQ_test.cpp @@ -20,9 +20,6 @@ namespace test { class TxQPosNegFlows_test : public beast::unit_test::suite { - // Same as corresponding values from TxQ.h - static constexpr FeeLevel64 baseFeeLevel{256}; - static constexpr FeeLevel64 minEscalationFeeLevel = baseFeeLevel * 500; void fillQueue(jtx::Env& env, jtx::Account const& account) @@ -70,7 +67,7 @@ class TxQPosNegFlows_test : public beast::unit_test::suite { FeeLevel64 const expectedMedFeeLevel = (feeLevel1 + feeLevel2 + FeeLevel64{1}) / 2; - return std::max(expectedMedFeeLevel, minEscalationFeeLevel).fee(); + return std::max(expectedMedFeeLevel, jtx::minEscalationFeeLevel).fee(); } auto diff --git a/src/test/jtx/TestHelpers.h b/src/test/jtx/TestHelpers.h index 2836748ec3..ba9fe8aa26 100644 --- a/src/test/jtx/TestHelpers.h +++ b/src/test/jtx/TestHelpers.h @@ -582,8 +582,8 @@ create(jtx::Account const& account, jtx::Account const& dest, STAmount const& se } // namespace check -static constexpr FeeLevel64 baseFeeLevel{TxQ::baseLevel}; -static constexpr FeeLevel64 minEscalationFeeLevel = baseFeeLevel * 500; +inline constexpr FeeLevel64 baseFeeLevel{256}; +inline constexpr FeeLevel64 minEscalationFeeLevel = baseFeeLevel * 500; template void