github.com/sandwich-go/boost@v1.3.29/xip/free_test.go (about)

     1  package xip
     2  
     3  import (
     4  	. "github.com/smartystreets/goconvey/convey"
     5  	"testing"
     6  )
     7  
     8  func TestFree(t *testing.T) {
     9  	Convey("get free port", t, func() {
    10  		port, err := GetFreePort()
    11  		So(err, ShouldBeNil)
    12  		So(port, ShouldBeGreaterThan, 0)
    13  		t.Log("free port:", port)
    14  	})
    15  }