aboutsummaryrefslogtreecommitdiff
path: root/tests/default_test.go
diff options
context:
space:
mode:
authorMeaglith Ma <genedna@gmail.com>2014-03-31 17:23:37 +0800
committerMeaglith Ma <genedna@gmail.com>2014-03-31 17:23:37 +0800
commit1a247340dbea3404431f60a24bb8f8d06d94b1e9 (patch)
tree80d3ecab43506e03405c742a84dcc61f474e2212 /tests/default_test.go
parent9047cadcd33f95eebafa2f794b895c8406eb80c5 (diff)
parentdd9fb807a46db120ef800d7465f50a73a86df288 (diff)
Merge pull request #1 from gogits/master
Sync to lastest
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)
+ }
+}