contrib: do not check for NIT_TESTING, nitcorn already checks
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 9 Mar 2016 18:15:52 +0000 (13:15 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 9 Mar 2016 20:10:06 +0000 (15:10 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/benitlux/src/benitlux_web.nit
contrib/opportunity/src/opportunity_web.nit
contrib/tnitter/src/tnitter.nit

index 8e03940..9739241 100644 (file)
@@ -21,9 +21,6 @@ import benitlux_model
 import benitlux_view
 import benitlux_controller
 
-# Avoid executing when running tests
-if "NIT_TESTING".environ == "true" then exit 0
-
 # Listening interface
 fun iface: String do return "localhost:8080"
 
index 0815b4f..bbee410 100644 (file)
@@ -19,9 +19,6 @@ import opportunity_controller
 import opts
 import privileges
 
-# Avoids a crash when running automatic tests
-if "NIT_TESTING".environ == "true" then exit 0
-
 var iface = "localhost:8080"
 
 var vh = new VirtualHost(iface)
index 4b175c2..949db77 100644 (file)
@@ -33,9 +33,6 @@ end
 # Address and port of the listening socket
 fun tnitter_interface: String do return "localhost:8080"
 
-# Avoid executing when running tests
-if "NIT_TESTING".environ == "true" then exit 0
-
 # Prepare options
 var opts = new OptionContext
 opts.parse(args)