feat(server): revision authors, revisions after a seq, online machines

This commit is contained in:
hh committed 2026-10-02 22:07:08 +00:00
1 parent 91d83f3032
commit c2e9284a63
6 files changed
+299 -15

No files matched your search

+8
View File
@@ -193,6 +193,14 @@ func TestDaemonFollowsServersAddedLater(t *testing.T) {
write(t, mac.root, "docs/agents/second.md", "second")
mac.sync()
fresh.waitFor("docs/agents/second.md", "second")
var machines []protocol.Machine
if err := (&Client{URL: event, Token: adminToken}).call(context.Background(), http.MethodGet, "/api/machines", nil, &machines); err != nil {
t.Fatal(err)
}
if len(machines) != 1 || !machines[0].Online {
t.Fatalf("the daemon is not online on the server it was bound to: %+v", machines)
}
}
func (m *machine) waitFor(path, content string) {