Skip to content

Commit

Permalink
metrics: skip non-mongo DBs in metrics test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Buchanan authored and adamstruck committed Jun 6, 2018
1 parent c75e6c7 commit d141edd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/core/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ import (
)

func TestMetrics(t *testing.T) {
conf := tests.DefaultConfig()
if conf.Database != "mongodb" {
t.Skip("metrics are only supported by mongodb")
}

fun := tests.NewFunnel(conf)
fun.StartServer()
tests.SetLogOutput(log, t)

id1 := fun.Run(`'echo hello world'`)
id2 := fun.Run(`'echo hello world'`)
id3 := fun.Run(`'exit 1'`)
id4 := fun.Run(`'sleep 10'`)
id4 := fun.Run(`'sleep 100'`)
_ = id4

fun.Wait(id1)
Expand Down

0 comments on commit d141edd

Please sign in to comment.