summaryrefslogtreecommitdiff
path: root/contrib/fs/file_test.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-09-30 20:08:33 -0600
committertjpcc <tjp@ctrl-c.club>2023-09-30 20:08:53 -0600
commit775c0c1040e6a6622fec39d49b354bfa194a6998 (patch)
treef46edde7ee0392ae714f4facfd4e64244814c040 /contrib/fs/file_test.go
parent09c482d5016cfc7b628058893a1644fdf5fa699f (diff)
file serving refactor
* do away with fs.FS usage in gemini, like the previous refactor in gopher * remove spartan code in contrib * standardize fsroot/urlroot string arguments to file serving handlers
Diffstat (limited to 'contrib/fs/file_test.go')
-rw-r--r--contrib/fs/file_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/fs/file_test.go b/contrib/fs/file_test.go
index 55e2a09..ce4d023 100644
--- a/contrib/fs/file_test.go
+++ b/contrib/fs/file_test.go
@@ -4,7 +4,6 @@ import (
"context"
"io"
"net/url"
- "os"
"testing"
"github.com/stretchr/testify/assert"
@@ -16,7 +15,7 @@ import (
)
func TestFileHandler(t *testing.T) {
- handler := fs.GeminiFileHandler(os.DirFS("testdata"))
+ handler := fs.GeminiFileHandler("testdata", "")
tests := []struct {
url string