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