mirror of https://github.com/prometheus/prometheus
Merge pull request #725 from prometheus/fabxc/testflags
Remove test flags in help outputpull/727/head
commit
acd2df7507
|
@ -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…
Reference in New Issue