mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
misc: removed bogus test
This commit is contained in:
parent
ccf4fa09e2
commit
cfc6d55462
1 changed files with 0 additions and 31 deletions
|
@ -518,37 +518,6 @@ func TestWiFiModuleProbe(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestWiFiModuleChannelSwitchAnnounce(t *testing.T) {
|
|
||||||
sess := createMockSession()
|
|
||||||
mod := NewWiFiModule(sess)
|
|
||||||
|
|
||||||
// Test CSA handler
|
|
||||||
handlers := mod.Handlers()
|
|
||||||
var csaHandler session.ModuleHandler
|
|
||||||
for _, h := range handlers {
|
|
||||||
if h.Name == "wifi.channel_switch_announce bssid channel " {
|
|
||||||
csaHandler = h
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if csaHandler.Name == "" {
|
|
||||||
t.Fatal("CSA handler not found")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Test with valid parameters
|
|
||||||
err := csaHandler.Exec([]string{"aa:bb:cc:dd:ee:ff", "11"})
|
|
||||||
if err == nil {
|
|
||||||
t.Error("Expected error when running CSA without running module")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Test with invalid channel
|
|
||||||
err = csaHandler.Exec([]string{"aa:bb:cc:dd:ee:ff", "999"})
|
|
||||||
if err == nil {
|
|
||||||
t.Error("Expected error with invalid channel")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestWiFiModuleFakeAuth(t *testing.T) {
|
func TestWiFiModuleFakeAuth(t *testing.T) {
|
||||||
sess := createMockSession()
|
sess := createMockSession()
|
||||||
mod := NewWiFiModule(sess)
|
mod := NewWiFiModule(sess)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue