mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 05:02:05 +00:00
fix: reconcile race fix, disk regression for snapshot deletion
This commit is contained in:
parent
09d9e7c23b
commit
218cc3fecb
11 changed files with 193 additions and 123 deletions
|
|
@ -81,15 +81,15 @@ func TestInjectMachineIdentityWritesHostnameFiles(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("read hostname: %v", err)
|
||||
}
|
||||
if hostname != "kiruru\n" {
|
||||
t.Fatalf("hostname mismatch: got %q want %q", hostname, "kiruru\n")
|
||||
if hostname != "agentcomputer\n" {
|
||||
t.Fatalf("hostname mismatch: got %q want %q", hostname, "agentcomputer\n")
|
||||
}
|
||||
|
||||
hosts, err := readExt4File(imagePath, "/etc/hosts")
|
||||
if err != nil {
|
||||
t.Fatalf("read hosts: %v", err)
|
||||
}
|
||||
if !strings.Contains(hosts, "127.0.1.1 kiruru") {
|
||||
if !strings.Contains(hosts, "127.0.1.1 agentcomputer") {
|
||||
t.Fatalf("hosts missing machine name: %q", hosts)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue