mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-31 20:24:18 -04:00
browse: Clarify test skip on Windows and log a message
This commit is contained in:
parent
0b4dda0aba
commit
0a31c32fb7
@ -3,6 +3,7 @@ package browse
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
@ -461,7 +462,10 @@ func TestBrowseRedirect(t *testing.T) {
|
|||||||
|
|
||||||
func TestDirSymlink(t *testing.T) {
|
func TestDirSymlink(t *testing.T) {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
return // TODO: Temporarily skipping these tests on Windows, so we can get a release out that fixes the build server
|
// Windows support for symlinks is limited, and we had a hard time getting
|
||||||
|
// all these tests to pass with the permissions of CI; so just skip them
|
||||||
|
fmt.Println("Skipping browse symlink tests on Windows...")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user