ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Only run samples if no test data is provided
Date Wed, 09 Nov 2016 17:34:52 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 34d1633dd -> 7302670e9


Only run samples if no test data is provided

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/7302670e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/7302670e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/7302670e

Branch: refs/heads/master
Commit: 7302670e959d3b6bfba77abdfdc167dc81236b66
Parents: 34d1633
Author: Sebb <sebb@apache.org>
Authored: Wed Nov 9 17:34:42 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Wed Nov 9 17:34:42 2016 +0000

----------------------------------------------------------------------
 test/test_luasocket.lua | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/7302670e/test/test_luasocket.lua
----------------------------------------------------------------------
diff --git a/test/test_luasocket.lua b/test/test_luasocket.lua
index 4ad2269..614cbbf 100644
--- a/test/test_luasocket.lua
+++ b/test/test_luasocket.lua
@@ -58,14 +58,11 @@ function runRequest(url, query)
     end
 end
 
---runRequest("http://wrong.host.invalid/")
---
---runRequest("http://localhost:92000/ponymail/")
---
-runRequest("http://localhost:9200/_cat/indices") -- valid
-runRequest("http://localhost:9200/_dog/indices") -- invalid
-runRequest("http://localhost:92000/_cat/indices") -- port invalid
 
 if #arg >0 then
     runRequest(unpack(arg))
+else
+    runRequest("http://localhost:9200/_cat/indices") -- valid
+    runRequest("http://localhost:9200/_dog/indices") -- invalid
+    runRequest("http://localhost:92000/_cat/indices") -- port invalid
 end


Mime
View raw message