github.com/TeaOSLab/EdgeNode@v1.3.8/internal/nodes/listener_test.go (about)

     1  package nodes
     2  
     3  import (
     4  	"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
     5  	"testing"
     6  )
     7  
     8  func TestListener_Listen(t *testing.T) {
     9  	listener := NewListener()
    10  
    11  	group := serverconfigs.NewServerAddressGroup("https://:1234")
    12  
    13  	listener.Reload(group)
    14  	err := listener.Listen()
    15  	if err != nil {
    16  		t.Fatal(err)
    17  	}
    18  }