Remove test flags in help output

pull/725/head
Fabian Reinartz 10 years ago
parent 9268bf9d36
commit b7eb105ffa

@ -20,7 +20,6 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"testing"
"time" "time"
clientmodel "github.com/prometheus/client_golang/model" clientmodel "github.com/prometheus/client_golang/model"
@ -50,7 +49,7 @@ const (
// Test is a sequence of read and write commands that are run // Test is a sequence of read and write commands that are run
// against a test storage. // against a test storage.
type Test struct { type Test struct {
*testing.T testutil.T
cmds []testCommand cmds []testCommand
@ -60,7 +59,7 @@ type Test struct {
} }
// NewTest returns an initialized empty Test. // NewTest returns an initialized empty Test.
func NewTest(t *testing.T, input string) (*Test, error) { func NewTest(t testutil.T, input string) (*Test, error) {
test := &Test{ test := &Test{
T: t, T: t,
cmds: []testCommand{}, cmds: []testCommand{},
@ -71,7 +70,7 @@ func NewTest(t *testing.T, input string) (*Test, error) {
return test, err return test, err
} }
func NewTestFromFile(t *testing.T, filename string) (*Test, error) { func NewTestFromFile(t testutil.T, filename string) (*Test, error) {
content, err := ioutil.ReadFile(filename) content, err := ioutil.ReadFile(filename)
if err != nil { if err != nil {
return nil, err return nil, err

Loading…
Cancel
Save