mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-16 10:28:24 -07:00
18 lines
247 B
Go
18 lines
247 B
Go
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)
|
|
}
|
|
}
|