Skip to content

Commit

Permalink
Add test case for issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Oct 12, 2016
1 parent e89ea7e commit 5046972
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions issue7/serve.sh
@@ -0,0 +1,2 @@
#!/bin/sh
go build && ./algernon --server --nolimit --addr=:3001 issue7/server.lua
5 changes: 5 additions & 0 deletions issue7/server.lua
@@ -0,0 +1,5 @@
hello = function()
print("Hello, World!")
end

handle("/", hello)
2 changes: 2 additions & 0 deletions issue7/test.sh
@@ -0,0 +1,2 @@
#!/bin/sh
ab -c 10 -n 10000 http://127.0.0.1:3001/

0 comments on commit 5046972

Please sign in to comment.