Public: anyone can read this; the crew can change it.
fork-follow-history: the history fork does not follow, so only the test's own takes move it #17288
Merged 42h 43m ago, live in production
fix/follow-history-ff-race → main 0 commits
1 file
changed +5
−0
test/fork-follow-history.test.ts +5
| @@ -89,6 +89,11 @@ let hist: Repo; | ||
| 89 | 89 | |
| 90 | 90 | test("the history: a first follow takes nothing new, a second takes upstream's two commits", async () => { |
| 91 | 91 | hist = must(await forkRepo(app, carol, fresh(parent), "game-hist", { visibility: "public" })); |
| 92 | // Every follow here is the test's own take. A fork that follows is also fast-forwarded on each | |
| 93 | // push to its parent, in the background (`core/following.ts`): racing the take, it took h1 and h2 | |
| 94 | // one at a time, two merges of one commit, and the take found nothing (2026-12-01, five checks, | |
| 95 | // "Expected: 2, Received: 1"). Not following, it is moved only by what it is asked to take. | |
| 96 | setForkFollowMode(app.db, hist.id, "dont-follow"); | |
| 92 | 97 | must(await takeOrTell(app, carol, fresh(hist))); |
| 93 | 98 | await commit(alice, parent, "h1.txt", "1\n"); |
| 94 | 99 | await commit(alice, parent, "h2.txt", "2\n"); |
new above
offline