github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/actor/pushaction/pushaction_suite_test.go (about)

     1  package pushaction_test
     2  
     3  import (
     4  	"os"
     5  	"time"
     6  
     7  	. "github.com/onsi/ginkgo"
     8  	. "github.com/onsi/gomega"
     9  
    10  	"testing"
    11  
    12  	log "github.com/sirupsen/logrus"
    13  )
    14  
    15  func TestPushAction(t *testing.T) {
    16  	RegisterFailHandler(Fail)
    17  	RunSpecs(t, "Push Actions Suite")
    18  }
    19  
    20  var _ = BeforeEach(func() {
    21  	SetDefaultEventuallyTimeout(3 * time.Second)
    22  	log.SetLevel(log.PanicLevel)
    23  })
    24  
    25  func getCurrentDir() string {
    26  	pwd, err := os.Getwd()
    27  	Expect(err).NotTo(HaveOccurred())
    28  	return pwd
    29  }