"agent/instructions.md": "Keep the instructions.\n",
"agent/telegram-offset.json": "23\n",
}
+
for name, data := range files {
path := filepath.Join(dir, name)
require.NoError(t, os.MkdirAll(filepath.Dir(path), 0o700))
Mode: 0o600,
},
)
+
dir := t.TempDir()
err := backupRestore(t.Context(), archive, dir)
require.ErrorContains(t, err, "unsafe archive path")
require.Never(t, func() bool {
return len(backedUp) != 0
}, 50*time.Millisecond, time.Millisecond)
+
release.Do(func() {
close(disconnect.release)
})