The core protocol of WoopChain
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.
 
 
 
woop/api/proto/message/server_test.go

15 lines
237 B

package message
import (
"testing"
"time"
)
func TestServerStart(t *testing.T) {
s := NewServer(nil, nil, nil)
if _, err := s.Start(); err != nil {
t.Fatalf("cannot start server: %s", err)
}
time.Sleep(time.Second)
s.Stop()
}