summaryrefslogtreecommitdiffstats
path: root/tests/default_test.go
blob: d6f3a03be69430f8368b8fb465e191dd73f63f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
	}
}