X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/a606686934b4028c29dca8e9dae6b2e188cee9c5..77f29e78734dc16cfcea5f41b8e0185f8b33534a:/rebuild_test.go?ds=inline diff --git a/rebuild_test.go b/rebuild_test.go index e3757ea..8d3c9d4 100644 --- a/rebuild_test.go +++ b/rebuild_test.go @@ -47,7 +47,9 @@ func TestRebuildMergesDatesAndKeepsAgentFiles(t *testing.T) { before := rebuildTestSnapshot(t, agent.dir) server := newModelFake(t) client := newModelClient(server.URL, ModelAPIKey(modelTestKey), agent.CacheKey(), filepath.Join(t.TempDir(), "usage.jsonl")) + var report strings.Builder + added := []DatedMessage{ { Kind: "work", @@ -169,6 +171,7 @@ func TestRebuildKeepsOriginalWhenAnInvisibleMergeFails(t *testing.T) { } rebuildTestLog(t, agent.dir, old) + before := rebuildTestSnapshot(t, agent.dir) server := newModelFake(t) server.reply = func(w http.ResponseWriter, _ ModelFakeCall) {