Update testTui tests to run with online and offline installs

This commit is contained in:
David Dworken
2023-10-25 20:44:26 -07:00
parent 00129a5372
commit 390f37f20c
3 changed files with 24 additions and 17 deletions

View File

@ -376,7 +376,7 @@ func CompareGoldens(t testing.TB, out, goldenName string) {
}
func normalizeHostnames(data string) string {
hostnames := []string{"Davids-MacBook-Air.local", "ghaction-runner-hostname", "Davids-Air"}
hostnames := []string{"Davids-MacBook-Air", "Davids-MacBook-Air.local", "ghaction-runner-hostname", "Davids-Air"}
for _, hostname := range hostnames {
data = strings.ReplaceAll(data, hostname, "ghaction-runner-hostname")
}