0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-12 23:12:21 +01:00
gitea/tests/default_test.go

18 lines
247 B
Go
Raw Normal View History

2014-03-31 10:24:58 +02:00
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)
}
}