21 lines
622 B
Go
21 lines
622 B
Go
package websocket
|
|
|
|
/*
|
|
func TestConnectChannelInit(t *testing.T) {
|
|
assert := assert.New(t)
|
|
|
|
for _, channel := range wifi24Channels {
|
|
assert.False(runtime.ChannelIs5GHz(channel), fmt.Sprintf("wifi24-is channel: %d", channel))
|
|
assert.NotNil(runtime.GetChannel(channel), fmt.Sprintf("wifi24-get channel: %d", channel))
|
|
}
|
|
assert.Len(wifi24Channels, 13)
|
|
|
|
for _, channel := range wifi5Channels {
|
|
assert.True(runtime.ChannelIs5GHz(channel), fmt.Sprintf("wifi5-is channel: %d", channel))
|
|
assert.NotNil(runtime.GetChannel(channel), fmt.Sprintf("wifi5-get channel: %d", channel))
|
|
}
|
|
assert.Len(wifi5Channels, 35)
|
|
|
|
}
|
|
*/
|