mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Remove part of the test that expects an error since now you can always get the profilez through the system account request
Signed-off-by: Jean-Noël Moyne <jnmoyne@gmail.com>
This commit is contained in:
@@ -4647,14 +4647,6 @@ func TestMonitorProfilez(t *testing.T) {
|
||||
s := RunServer(DefaultOptions())
|
||||
defer s.Shutdown()
|
||||
|
||||
// First of all, check that the profiles aren't accessible
|
||||
// when profiling hasn't been started in the usual way.
|
||||
if ps := s.profilez(&ProfilezOptions{
|
||||
Name: "allocs", Debug: 0,
|
||||
}); ps.Error == "" {
|
||||
t.Fatal("Profile should not be accessible when profiling not started")
|
||||
}
|
||||
|
||||
// Then start profiling.
|
||||
s.StartProfiler()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user