From 1e6e6945cc3cb5abb4b5aa547f722b5fd0230f2a Mon Sep 17 00:00:00 2001
From: Felix Riehn <felix@matilda>
Date: Sat, 11 Dec 2021 16:51:44 +0000
Subject: [PATCH] added qgsjet random number stream for second test case,
 adjusted test to new interface

---
 tests/modules/testQGSJetII.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/modules/testQGSJetII.cpp b/tests/modules/testQGSJetII.cpp
index 966928f9a..b36f364bf 100644
--- a/tests/modules/testQGSJetII.cpp
+++ b/tests/modules/testQGSJetII.cpp
@@ -123,6 +123,8 @@ TEST_CASE("QgsjetIIInterface", "interaction,processes") {
 
   logging::set_level(logging::level::info);
 
+  RNGManager<>::getInstance().registerRandomStream("qgsjet");
+
   auto [env, csPtr, nodePtr] = setup::testing::setup_environment(Code::Oxygen);
   auto const& cs = *csPtr;
   [[maybe_unused]] auto const& env_dummy = env;
@@ -228,7 +230,7 @@ TEST_CASE("QgsjetIIInterface", "interaction,processes") {
                           {sqrt(static_pow<2>(1_TeV) + static_pow<2>(Rho0::mass)),
                            MomentumVector{cs, 1_TeV, 0_GeV, 0_GeV}},
                           {Oxygen::mass, MomentumVector{cs, 0_eV, 0_eV, 0_eV}});
-      CHECK(view.getSize() == Approx(25).margin(20)); // this is not physics validation
+      CHECK(view.getSize() == Approx(50).margin(20)); // this is not physics validation
     }
     { // Lambda is internally converted into neutron
       auto [stackPtr, secViewPtr] = setup::testing::setup_stack(
-- 
GitLab