mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Batch mirror fix
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
command: go test -v {}
|
||||
include: ^.+_test\.go$
|
||||
path: ./
|
||||
depth: 1
|
||||
verbose: true
|
||||
timeout: 1m
|
||||
reload: false
|
||||
html: test.html
|
||||
notify: []
|
@@ -1,13 +0,0 @@
|
||||
## Gogs Test
|
||||
|
||||
This is for developers.
|
||||
|
||||
## Prepare Environment
|
||||
|
||||
go get -u github.com/shxsun/travelexec
|
||||
# start gogs server
|
||||
gogs web
|
||||
|
||||
## Start Testing
|
||||
|
||||
travelexec
|
@@ -1,17 +0,0 @@
|
||||
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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user