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:
Jean-Noël Moyne
2023-08-13 18:00:08 -07:00
parent bb53b54810
commit 40b8aa434b

View File

@@ -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()