Skip to content

Commit e80da95

Browse files
committed
Skip envtest integration tests
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
1 parent fcfc117 commit e80da95

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

envtest/internal/controlplane/controlplane_suite_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import (
2424
)
2525

2626
func TestIntegration(t *testing.T) {
27+
if testing.Short() {
28+
t.Skip("skipping integration test")
29+
}
2730
t.Parallel()
2831
RegisterFailHandler(Fail)
2932
RunSpecs(t, "Kcp Standup Unit Tests")

envtest/internal/controlplane/plane_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var _ = Describe("Control Plane", func() {
3535
Expect(plane.Start()).To(Succeed())
3636
Expect(plane.Stop()).To(Succeed())
3737
})
38+
3839
It("should use the given shard when starting, if present", func() {
3940
rootShard := &Shard{}
4041
plane := &Kcp{

hack/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ source hack/lib.sh
2121

2222
TEST_KCP_ASSETS="${PWD}/_tools" \
2323
CGO_ENABLED=1 \
24-
go_test unit_tests -tags "unit" -timeout 20m -race -v ./...
24+
go_test unit_tests -short -tags "unit" -timeout 20m -race -v ./...

test/e2e/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var (
3737
kcpConfig *rest.Config
3838
)
3939

40-
func TestGinkgo(t *testing.T) {
40+
func TestE2e(t *testing.T) {
4141
RegisterFailHandler(Fail)
4242

4343
// Start a shared kcp instance.

0 commit comments

Comments
 (0)