Yet another node info collector - for respondd to be used with meshviewer to Grafana (with influxdb or graphite)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
342 B

package webserver
import (
func TestWebserver(t *testing.T) {
assert := assert.New(t)
srv := New(":12345", "/tmp")
go Start(srv)
time.Sleep(time.Millisecond * 200)
assert.Panics(func() {
}, "not allowed to listen twice")