18 lines
287 B
Go
18 lines
287 B
Go
|
package websocket
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/FreifunkBremen/freifunkmanager/runtime"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestStart(t *testing.T) {
|
||
|
assert := assert.New(t)
|
||
|
nodes := &runtime.Nodes{}
|
||
|
assert.Nil(clients)
|
||
|
Start(nodes)
|
||
|
assert.NotNil(clients)
|
||
|
Close()
|
||
|
}
|