Skip to content

Commit

Permalink
Fixup integration tests for race detector
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Nov 29, 2014
1 parent 42b8daf commit 367e50e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ case "${1:-default}" in
&& go run build.go -race \
&& export GOPATH=$(pwd)/Godeps/_workspace:$GOPATH \
&& cd test \
&& go test -tags integration -v'
&& go test -tags integration -v -timeout 30m'
;;

*)
Expand Down
6 changes: 0 additions & 6 deletions test/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,6 @@ func (p *syncthingProcess) version() (string, error) {
return v.Version, nil
}

type fileGenerator struct {
files int
maxexp int
srcname string
}

func generateFiles(dir string, files, maxexp int, srcname string) error {
fd, err := os.Open(srcname)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion test/filetype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestFiletypeChange(t *testing.T) {
}

log.Println("Generating files...")
err = generateFiles("s1", 100, 20, "../bin/syncthing")
err = generateFiles("s1", 100, 20, "../LICENSE")
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/manypeers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestManyPeers(t *testing.T) {
}

log.Println("Generating files...")
err = generateFiles("s1", 200, 20, "../bin/syncthing")
err = generateFiles("s1", 200, 20, "../LICENSE")
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/reconnect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func testRestartDuringTransfer(t *testing.T, restartSender, restartReceiver bool
}

log.Println("Generating files...")
err = generateFiles("s1", 1000, 22, "../bin/syncthing")
err = generateFiles("s1", 1000, 22, "../LICENSE")
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/symlink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestSymlinks(t *testing.T) {
}

log.Println("Generating files...")
err = generateFiles("s1", 100, 20, "../bin/syncthing")
err = generateFiles("s1", 100, 20, "../LICENSE")
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/transfer-bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestBenchmarkTransfer(t *testing.T) {
}

log.Println("Generating files...")
err = generateFiles("s1", nfiles, 22, "../bin/syncthing")
err = generateFiles("s1", nfiles, 22, "../LICENSE")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 367e50e

Please sign in to comment.