Name no node in postgres's, ssh-client's and mesh-mail-web's fixtures (issue 1838)
This commit is contained in:
@@ -44,7 +44,7 @@ func sweepHome(t *testing.T) (*Client, string) {
|
||||
put("work_key-cert.pub", "ssh-ed25519-cert-v01@openssh.com AAAAIHNzaC1lZDI1NTE5LWNlcnQtdjAxQG9wZW5zc2guY29t work\n", 0o644)
|
||||
put("config.bak-20260807-015327", "old\n", 0o600)
|
||||
put("known_hosts.old", "old\n", 0o644)
|
||||
put("config.d/mesh", "Host ace\n", 0o600)
|
||||
put("config.d/mesh", "Host node-a\n", 0o600)
|
||||
put("removed-hal-20261002/config", "old\n", 0o600)
|
||||
put("removed-drone-20261004/id_drone", key, 0o600) // a key inside a leftover folder
|
||||
put("removed-drone-20261004/config", "old\n", 0o600)
|
||||
@@ -136,7 +136,7 @@ func TestSweepOnceSaysEachMove(t *testing.T) {
|
||||
|
||||
func TestSweepLeavesSocketsAndUnreadable(t *testing.T) {
|
||||
c, dir := sweepHome(t)
|
||||
sock := filepath.Join(dir, "cm-ace")
|
||||
sock := filepath.Join(dir, "cm-node-a")
|
||||
if l, err := net.Listen("unix", sock); err == nil {
|
||||
defer l.Close()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user