influxdb/testing/util.go

16 lines
217 B
Go
Raw Normal View History

package testing
import (
2018-08-01 18:54:32 +00:00
"testing"
"github.com/influxdata/platform"
)
2018-08-01 18:54:32 +00:00
func idFromString(t *testing.T, s string) platform.ID {
id, err := platform.IDFromString(s)
if err != nil {
2018-08-01 18:54:32 +00:00
t.Fatal(err)
}
return *id
}