diff --git a/internal/frontend/serve/hub_sync_test.go b/internal/frontend/serve/hub_sync_test.go index 5abd7073d8..aeafe81bab 100644 --- a/internal/frontend/serve/hub_sync_test.go +++ b/internal/frontend/serve/hub_sync_test.go @@ -14,6 +14,7 @@ import ( "reasonix/internal/session/control" "reasonix/internal/state/sessionstore" "reasonix/internal/state/store" + "runtime" "strings" "testing" "time" @@ -232,7 +233,13 @@ func TestTreeInvalidationFollowsAutomaticArchiveOnlyWhenRowsChange(t *testing.T) func TestTreeWriteKeepsJSONContentTypeAndEscaping(t *testing.T) { t.Setenv("REASONIX_HOME", testenv.TempDir(t)) - root := filepath.Join(testenv.TempDir(t), ``) + // Windows refuses < and > in a file name; & is the other character the JSON + // encoder escapes, so the same check still holds there. + name, raw := ``, "