mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-16 16:00:59 +00:00
feat(contracts): add published ports, snapshot request, and storage report types
This commit is contained in:
parent
501ae2abd5
commit
26b5d2966d
20 changed files with 893 additions and 81 deletions
|
|
@ -19,15 +19,15 @@ func TestCloneFilePreservesSparseDiskUsage(t *testing.T) {
|
|||
t.Fatalf("open source file: %v", err)
|
||||
}
|
||||
if _, err := sourceFile.Write([]byte("head")); err != nil {
|
||||
sourceFile.Close()
|
||||
_ = sourceFile.Close()
|
||||
t.Fatalf("write source prefix: %v", err)
|
||||
}
|
||||
if _, err := sourceFile.Seek(32<<20, io.SeekStart); err != nil {
|
||||
sourceFile.Close()
|
||||
_ = sourceFile.Close()
|
||||
t.Fatalf("seek source hole: %v", err)
|
||||
}
|
||||
if _, err := sourceFile.Write([]byte("tail")); err != nil {
|
||||
sourceFile.Close()
|
||||
_ = sourceFile.Close()
|
||||
t.Fatalf("write source suffix: %v", err)
|
||||
}
|
||||
if err := sourceFile.Close(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue