mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
Fix linting
This commit is contained in:
parent
202c950398
commit
a3994cf029
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ func TestLFSSupport(t *testing.T) {
|
||||||
|
|
||||||
func TestGetOptions(t *testing.T) {
|
func TestGetOptions(t *testing.T) {
|
||||||
log.Println("=== TestGetOptions ===")
|
log.Println("=== TestGetOptions ===")
|
||||||
req, _ := http.NewRequest(http.MethodOptions, "https://mock-pages.codeberg-test.org:4430/README.md", nil)
|
req, _ := http.NewRequest(http.MethodOptions, "https://mock-pages.codeberg-test.org:4430/README.md", http.NoBody)
|
||||||
resp, err := getTestHTTPSClient().Do(req)
|
resp, err := getTestHTTPSClient().Do(req)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
if !assert.NotNil(t, resp) {
|
if !assert.NotNil(t, resp) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ func TestMain(m *testing.M) {
|
||||||
|
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
|
|
||||||
os.Exit(m.Run())
|
m.Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
func startServer(ctx context.Context) error {
|
func startServer(ctx context.Context) error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue