From b9f5b70dd3ff05d41091d61bc2f9faaff9862b10 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Sun, 14 Nov 2021 10:17:50 -0800 Subject: [PATCH] Reaction unit test shouldn't do disabled ones --- code/modules/unit_tests/reactions.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/unit_tests/reactions.dm b/code/modules/unit_tests/reactions.dm index 66d9b49099..c2b62f6fdc 100644 --- a/code/modules/unit_tests/reactions.dm +++ b/code/modules/unit_tests/reactions.dm @@ -1,6 +1,7 @@ /datum/unit_test/reactions/Run() for(var/datum/gas_reaction/G in SSair.gas_reactions) - var/test_info = G.test() - if(!test_info["success"]) - var/message = test_info["message"] - Fail("Gas reaction [G.name] is failing its unit test with the following message: [message]") + if(!G.exclude) + var/test_info = G.test() + if(!test_info["success"]) + var/message = test_info["message"] + Fail("Gas reaction [G.name] is failing its unit test with the following message: [message]")