version mismatch catch

This commit is contained in:
ari committed 2026-11-01 14:34:23 -05:00
1 parent 3ba96528bb
commit a90653260a
11 files changed
+181 -34

No files matched your search

+2 -1
View File
@@ -26,6 +26,7 @@ type FakeNode struct {
Passes int
FailWrites bool
Usable model.Size
Version string
}
func NewFakeNode(name string) *FakeNode {
@@ -42,7 +43,7 @@ func (f *FakeNode) Info(ctx context.Context) (node.NodeInfo, error) {
for k, v := range f.Homes {
homes[strings.TrimPrefix(k, "/d/")] = int64(len(v)) >> 20
}
return node.NodeInfo{Name: f.name, Usable: f.Usable, Running: running,
return node.NodeInfo{Name: f.name, Version: f.Version, Usable: f.Usable, Running: running,
Drives: []node.DriveInfo{{Path: "/d", FreeMB: 50_000, HomesMB: homes}}}, nil
}
func (f *FakeNode) Running(context.Context) ([]node.RunningMachine, error) {