freifunkmanager/websocket/hd_connect_test.go

21 lines
622 B
Go
Raw Normal View History

2018-07-15 21:04:17 +02:00
package websocket
2018-08-10 13:46:18 +02:00
/*
2018-07-15 21:04:17 +02:00
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)
}
2018-08-10 13:46:18 +02:00
*/