mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 13:32:07 -07:00
make coherent lan test due to changes in aliases
messing with the Aliases test seems to cause issues for the lan test, this fixes the error
This commit is contained in:
parent
0b55b645b1
commit
871bbde89f
1 changed files with 2 additions and 2 deletions
|
@ -112,9 +112,9 @@ func TestAliases(t *testing.T) {
|
|||
exampleAlias := "picat"
|
||||
exampleLAN := buildExampleLAN()
|
||||
exampleEndpoint := buildExampleEndpoint()
|
||||
exampleLAN.hosts[exampleEndpoint.HwAddress] = exampleEndpoint
|
||||
exampleLAN.hosts["pi:ca:tw:as:he:re"] = exampleEndpoint
|
||||
exp := exampleAlias
|
||||
got := exampleLAN.Aliases().Get(exampleEndpoint.HwAddress)
|
||||
got := exampleLAN.Aliases().Get("pi:ca:tw:as:he:re")
|
||||
if got != exp {
|
||||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue