Explorar o código

Exclude integration tests from normal go test

Jakob Borg %!s(int64=11) %!d(string=hai) anos
pai
achega
8ce8476547
Modificáronse 2 ficheiros con 4 adicións e 5 borrados
  1. 2 0
      integration/common_test.go
  2. 2 5
      integration/reconnect_test.go

+ 2 - 0
integration/common_test.go

@@ -2,6 +2,8 @@
 // All rights reserved. Use of this source code is governed by an MIT-style
 // license that can be found in the LICENSE file.
 
+// +build integration
+
 package integration_test
 
 import (

+ 2 - 5
integration/reconnect_test.go

@@ -2,6 +2,8 @@
 // All rights reserved. Use of this source code is governed by an MIT-style
 // license that can be found in the LICENSE file.
 
+// +build integration
+
 package integration_test
 
 import (
@@ -37,11 +39,6 @@ func TestRestartSenderDuringTransfer(t *testing.T) {
 }
 
 func testRestartDuringTransfer(t *testing.T, restartSender, restartReceiver bool, senderDelay, receiverDelay time.Duration) {
-	if testing.Short() {
-		t.Skip("skipping integration test")
-		return
-	}
-
 	t.Log("Cleaning...")
 	err := removeAll("s1", "s2", "f1/index", "f2/index")
 	if err != nil {