f-95: watchdog: MAC non figée sur le tap signalée #95

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-31 21:26:09 +01:00
commit 2f0310d5bc
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 26 additions and 0 deletions

View file

@ -267,3 +267,10 @@ func TestCheckVMs_ClesDeDisqueNeCreentPasDeFausseVM(t *testing.T) {
}
}
}
func TestTapMACProblem_InvalidMACInDatabase(t *testing.T) {
got := tapMACProblem("52:54:00:zz:01:32", 12345678)
if !strings.HasPrefix(got, `invalid mac "52:54:00:zz:01:32" in database`) {
t.Errorf("tapMACProblem = %q", got)
}
}