mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Fixed benchmark tests to be able to run with Go 1.13+
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -1077,10 +1077,6 @@ var benchSublistSl = NewSublistWithCache()
|
||||
// https://github.com/golang/go/issues/31859
|
||||
func TestMain(m *testing.M) {
|
||||
flag.Parse()
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func init() {
|
||||
initSublist := false
|
||||
flag.Visit(func(f *flag.Flag) {
|
||||
if f.Name == "test.bench" {
|
||||
@@ -1096,6 +1092,7 @@ func init() {
|
||||
}
|
||||
addWildcards()
|
||||
}
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func subsInit(pre string, toks []string) {
|
||||
|
||||
Reference in New Issue
Block a user