metrics: Prometheus endpoint on its own --metrics listener; the pod exposes it inside the cluster only
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -28,6 +28,7 @@ const (
|
||||
type fixture struct {
|
||||
srv *httptest.Server
|
||||
s *store.Store
|
||||
node *p2p.Node
|
||||
dev *identity.Device
|
||||
phrase string // the recovery phrase of the identity behind dev
|
||||
}
|
||||
@@ -67,7 +68,7 @@ func newFixture(t *testing.T, tok string, tweak ...func(*Config)) *fixture {
|
||||
}
|
||||
srv := httptest.NewServer(New(cfg))
|
||||
t.Cleanup(func() { srv.Close(); node.Close(); s.Close() })
|
||||
return &fixture{srv: srv, s: s, dev: dev, phrase: phrase}
|
||||
return &fixture{srv: srv, s: s, node: node, dev: dev, phrase: phrase}
|
||||
}
|
||||
|
||||
func (f *fixture) do(t *testing.T, method, path, body string, auth bool) (int, []byte) {
|
||||
|
||||
Reference in New Issue
Block a user