aboutsummaryrefslogtreecommitdiff
path: root/tests/default_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-31 16:29:09 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-31 16:29:09 +0800
commitdd9fb807a46db120ef800d7465f50a73a86df288 (patch)
tree80d3ecab43506e03405c742a84dcc61f474e2212 /tests/default_test.go
parente938863ae6887f7c3c24145ed3b64dc1d27ee675 (diff)
parent9acc1c33be76b05231ec3a5a222af02484689974 (diff)
Merge pull request #47 from shxsun/master
add start.sh and start.bat and python test init scripts
Diffstat (limited to 'tests/default_test.go')
-rw-r--r--tests/default_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/default_test.go b/tests/default_test.go
new file mode 100644
index 00000000..d6f3a03b
--- /dev/null
+++ b/tests/default_test.go
@@ -0,0 +1,17 @@
+package test
+
+import (
+ "net/http"
+ "testing"
+)
+
+func TestMain(t *testing.T) {
+ r, err := http.Get("http://localhost:3000/")
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer r.Body.Close()
+ if r.StatusCode != http.StatusOK {
+ t.Error(r.StatusCode)
+ }
+}