github.com/smithx10/nomad@v0.9.1-rc1/e2e/rescheduling/server_side_restarts_suite_test.go (about)

     1  package rescheduling
     2  
     3  import (
     4  	"flag"
     5  	"testing"
     6  
     7  	. "github.com/onsi/ginkgo"
     8  	. "github.com/onsi/gomega"
     9  )
    10  
    11  var integration = flag.Bool("integration", false, "run integration tests")
    12  var slow = flag.Bool("slow", false, "runs slower integration tests")
    13  
    14  func TestServerSideRestarts(t *testing.T) {
    15  	if !*integration {
    16  		t.Skip("skipping test in non-integration mode.")
    17  	}
    18  	RegisterFailHandler(Fail)
    19  	RunSpecs(t, "Server Side Restart Tests")
    20  }