From 40b8aa434b01385bf0f0a4a003184418e67b9c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Moyne?= Date: Sun, 13 Aug 2023 18:00:08 -0700 Subject: [PATCH] Remove part of the test that expects an error since now you can always get the profilez through the system account request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Noël Moyne --- server/monitor_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/monitor_test.go b/server/monitor_test.go index d9155dd4..89d347eb 100644 --- a/server/monitor_test.go +++ b/server/monitor_test.go @@ -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()