mirror of https://github.com/gogits/gogs.git
skyblue
11 years ago
4 changed files with 19 additions and 18 deletions
@ -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) |
||||
} |
||||
} |
Loading…
Reference in new issue