Skip to content

Commit

Permalink
Run slower tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Aug 24, 2013
1 parent 3995f4f commit 730b6c9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions compact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
)

func TestCompaction(t *testing.T) {
t.Parallel()

testBucketDir, _ := ioutil.TempDir("./tmp", "test")
defer os.RemoveAll(testBucketDir)

Expand Down Expand Up @@ -155,6 +157,7 @@ func TestEmptyFileCompaction(t *testing.T) {
}

func TestCompactionNumFiles(t *testing.T) {
t.Parallel()
testBucketDir, _ := ioutil.TempDir("./tmp", "test")
defer os.RemoveAll(testBucketDir)

Expand Down Expand Up @@ -238,6 +241,8 @@ func SKIP_TestCompactionPurgeTimeout(t *testing.T) {
}

func TestCopyDelta(t *testing.T) {
t.Parallel()

testCopyDelta(t, 1)
testCopyDelta(t, 0x0800000)
}
Expand Down
2 changes: 0 additions & 2 deletions periodically_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ func TestPeriodicallyNoWorkers(t *testing.T) {
}

func TestPeriodicallyNormal(t *testing.T) {
t.Parallel()

stopch := make(chan bool)
defer close(stopch)

Expand Down
1 change: 1 addition & 0 deletions stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ func TestBasicAggStats(t *testing.T) {
}

func TestMultiDayAggStats(t *testing.T) {
t.Parallel()
a := NewAggStats(func() Aggregatable {
return &BucketStats{}
})
Expand Down
1 change: 1 addition & 0 deletions tap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func TestTapSetup(t *testing.T) {
}

func TestTapChanges(t *testing.T) {
t.Parallel()
// This test has a couple of loose sync points where it sleeps
// waiting for messages to go through since there's no way to
// observe the effect of the observation currently. There
Expand Down

0 comments on commit 730b6c9

Please sign in to comment.