nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/nitcorn: update examples as they don't need to check for tests
[nit.git]
/
lib
/
nitcorn
/
examples
/
src
/
restful_annot.nit
diff --git
a/lib/nitcorn/examples/src/restful_annot.nit
b/lib/nitcorn/examples/src/restful_annot.nit
index
3657031
..
60cf488
100644
(file)
--- a/
lib/nitcorn/examples/src/restful_annot.nit
+++ b/
lib/nitcorn/examples/src/restful_annot.nit
@@
-39,9
+39,6
@@
var vh = new VirtualHost("localhost:8080")
# Serve everything with our restful action
vh.routes.add new Route(null, new MyAction)
# Serve everything with our restful action
vh.routes.add new Route(null, new MyAction)
-# Avoid executing when running tests
-if "NIT_TESTING".environ == "true" then exit 0
-
var factory = new HttpFactory.and_libevent
factory.config.virtual_hosts.add vh
factory.run
var factory = new HttpFactory.and_libevent
factory.config.virtual_hosts.add vh
factory.run