github.com/thanos-io/thanos@v0.32.5/pkg/gate/gate_test.go (about) 1 // Copyright (c) The Thanos Authors. 2 // Licensed under the Apache License 2.0. 3 4 package gate 5 6 import ( 7 "context" 8 "testing" 9 10 "github.com/prometheus/client_golang/prometheus" 11 "github.com/stretchr/testify/require" 12 ) 13 14 func TestGateAllowsDisablingLimits(t *testing.T) { 15 reg := prometheus.NewRegistry() 16 g := New(reg, 0, Queries) 17 18 require.NoError(t, g.Start(context.Background())) 19 }