Files
go-zero/core/proc/goroutines_test.go

16 lines
286 B
Go
Raw Normal View History

2020-09-29 14:30:22 +08:00
package proc
import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/core/logx/logtest"
2020-09-29 14:30:22 +08:00
)
func TestDumpGoroutines(t *testing.T) {
buf := logtest.NewCollector(t)
2020-09-29 14:30:22 +08:00
dumpGoroutines()
assert.True(t, strings.Contains(buf.String(), ".dump"))
}