test(brainfs): per-caller in-brain symlink targets for slices 1-3 (#171) #172

Merged
mathias merged 5 commits from test/in-brain-targets-171 into main 2026-10-05 19:36:31 +00:00
Showing only changes of commit 1cf05fdf15 - Show all commits
+3 -1
View File
@@ -205,7 +205,9 @@ func TestQueryDoesNotReturnAnInBrainSymlinkTargetDuringASampledSwapRace(t *testi
brain, facts, _ := searchBrain(t)
target := inBrainTarget(t, brain)
read := func() string {
rs, _ := Query(brain, QueryOptions{Query: brainfstest.Sentinel, Limit: 10})
// Both terms, so the regular note is a possible hit: a reader that
// never returns the inside note would pass vacuously (#177 floor).
rs, _ := Query(brain, QueryOptions{Query: brainfstest.Sentinel + " zqinside", Limit: 10})
s := ""
for _, r := range rs {
s += r.Title + r.Excerpt