This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
// trigram indexes introduced alongside the escaping change.
|
||||
func TestPageSearchEscapesWildcards(t *testing.T) {
|
||||
srv, d := testServerDB(t)
|
||||
alice, _ := accountClient(t, srv.URL, "pagesearch@computer.test")
|
||||
other, _ := accountClient(t, srv.URL, "pagesearch-other@computer.test")
|
||||
alice, _ := accountClient(t, srv.URL, "pagesearch@superbrain.test")
|
||||
other, _ := accountClient(t, srv.URL, "pagesearch-other@superbrain.test")
|
||||
|
||||
alice.request("POST", "/api/pages", map[string]any{"title": "100% done", "content": "literal percent"}, 201)
|
||||
alice.request("POST", "/api/pages", map[string]any{"title": "100x done", "content": "not a percent"}, 201)
|
||||
@@ -44,7 +44,7 @@ func TestPageSearchEscapesWildcards(t *testing.T) {
|
||||
// instead of persisting them (the 1 MiB body cap alone is too coarse).
|
||||
func TestTextFieldSizeLimits(t *testing.T) {
|
||||
srv := testServer(t)
|
||||
alice, _ := accountClient(t, srv.URL, "limits@computer.test")
|
||||
alice, _ := accountClient(t, srv.URL, "limits@superbrain.test")
|
||||
|
||||
const (
|
||||
urlLimit = 2048
|
||||
|
||||
Reference in New Issue
Block a user