diff --git a/src/ripple/test/jtx/impl/Env.cpp b/src/ripple/test/jtx/impl/Env.cpp index 8e72f3faa2..4bfd30398b 100644 --- a/src/ripple/test/jtx/impl/Env.cpp +++ b/src/ripple/test/jtx/impl/Env.cpp @@ -370,7 +370,9 @@ Env::st (JTx const& jt) ApplyFlags Env::applyFlags() const { - return tapENABLE_TESTING; + if (testing_) + return tapENABLE_TESTING; + return tapNONE; } } // jtx