github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/server/server_suite_test.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package server_test
     5  
     6  import (
     7  	. "github.com/onsi/ginkgo/v2"
     8  	. "github.com/onsi/gomega"
     9  	"testing"
    10  	"time"
    11  )
    12  
    13  func TestServer(t *testing.T) {
    14  	RegisterFailHandler(Fail)
    15  	suiteConfig, reporterConfig := GinkgoConfiguration()
    16  	reporterConfig.SlowSpecThreshold = 30 * time.Second
    17  	RunSpecs(t, "Server Suite", suiteConfig, reporterConfig)
    18  }