mirror of
https://github.com/octoleo/syncthing.git
synced 2025-04-02 15:51:51 +00:00
Exclude integration tests from normal go test
This commit is contained in:
parent
d82caf6bd4
commit
8ce8476547
@ -2,6 +2,8 @@
|
|||||||
// All rights reserved. Use of this source code is governed by an MIT-style
|
// All rights reserved. Use of this source code is governed by an MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build integration
|
||||||
|
|
||||||
package integration_test
|
package integration_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// All rights reserved. Use of this source code is governed by an MIT-style
|
// All rights reserved. Use of this source code is governed by an MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build integration
|
||||||
|
|
||||||
package integration_test
|
package integration_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -37,11 +39,6 @@ func TestRestartSenderDuringTransfer(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testRestartDuringTransfer(t *testing.T, restartSender, restartReceiver bool, senderDelay, receiverDelay time.Duration) {
|
func testRestartDuringTransfer(t *testing.T, restartSender, restartReceiver bool, senderDelay, receiverDelay time.Duration) {
|
||||||
if testing.Short() {
|
|
||||||
t.Skip("skipping integration test")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
t.Log("Cleaning...")
|
t.Log("Cleaning...")
|
||||||
err := removeAll("s1", "s2", "f1/index", "f2/index")
|
err := removeAll("s1", "s2", "f1/index", "f2/index")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user