Skip to content

Commit

Permalink
MAKE-1010: trim collector tests mongodb#2
Browse files Browse the repository at this point in the history
  • Loading branch information
tychoish committed Nov 10, 2019
1 parent 063b534 commit 38d5cb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
2 changes: 2 additions & 0 deletions metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func TestCollectRuntime(t *testing.T) {
SampleCount: 10,
FlushInterval: time.Second,
CollectionInterval: time.Millisecond,
SkipProcess: true,
SkipSystem: true,
}
var cancel context.CancelFunc
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
Expand Down
49 changes: 0 additions & 49 deletions util_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,37 +399,6 @@ func createCollectors(ctx context.Context) []*customCollector {

func createTests() []customTest {
return []customTest{
{
name: "OneDocNoStats",
docs: []*birch.Document{
birch.NewDocument(birch.EC.String("foo", "bar")),
},
skipBench: true,
},
{
name: "OneDocumentOneStat",
docs: []*birch.Document{
birch.NewDocument(birch.EC.Int32("foo", 42)),
},
skipBench: true,
numStats: 1,
},
{
name: "OneSmallFlat",
docs: []*birch.Document{
randFlatDocument(12),
},
numStats: 12,
skipBench: true,
},
{
name: "OneLargeFlat",
docs: []*birch.Document{
randFlatDocument(360),
},
numStats: 360,
skipBench: true,
},
{
name: "SeveralDocNoStats",
docs: []*birch.Document{
Expand Down Expand Up @@ -496,15 +465,6 @@ func createTests() []customTest {
skipBench: true,
numStats: 2000,
},
{
name: "OneSmallComplex",
docs: []*birch.Document{
randComplexDocument(4, 10),
},
randStats: true,
numStats: 11,
skipBench: true,
},
{
name: "SeveralSmallComplex",
docs: []*birch.Document{
Expand All @@ -522,15 +482,6 @@ func createTests() []customTest {
numStats: 101,
randStats: true,
},
{
name: "OneHugeComplex",
docs: []*birch.Document{
randComplexDocument(10000, 10000),
},
randStats: true,
numStats: 1000,
skipBench: true,
},
{
name: "SeveralHugeComplex",
docs: []*birch.Document{
Expand Down

0 comments on commit 38d5cb7

Please sign in to comment.