freifunkmanager/websocket/server_test.go

19 lines
330 B
Go
Raw Normal View History

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{}
2017-05-30 16:39:14 +02:00
commands := &runtime.Commands{}
assert.Nil(clients)
2017-05-30 16:39:14 +02:00
Start(nodes, commands)
assert.NotNil(clients)
Close()
}