github.com/sohaha/zlsgo@v1.7.13-0.20240501141223-10dd1a906f76/zutil/runtime_test.go (about)

     1  package zutil_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/sohaha/zlsgo/zutil"
     7  )
     8  
     9  func TestGetGid(t *testing.T) {
    10  	t.Log(zutil.GetGid())
    11  	c := make(chan struct{})
    12  	go func() {
    13  		t.Log(zutil.GetGid())
    14  		c <- struct{}{}
    15  	}()
    16  	<-c
    17  	t.Log(zutil.GetGid())
    18  }