From 638082fe375daf5c3190e322f6d283725c10d0ed Mon Sep 17 00:00:00 2001 From: Brian Le Date: Wed, 22 May 2024 11:27:43 -0700 Subject: [PATCH] update test --- test/app_profiler/viewer/speedscope_remote_viewer_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/app_profiler/viewer/speedscope_remote_viewer_test.rb b/test/app_profiler/viewer/speedscope_remote_viewer_test.rb index 2cd35c2e..55fcbb42 100644 --- a/test/app_profiler/viewer/speedscope_remote_viewer_test.rb +++ b/test/app_profiler/viewer/speedscope_remote_viewer_test.rb @@ -25,14 +25,14 @@ class SpeedscopeRemoteViewerTest < TestCase viewer.view end - test "#view with response redirects to URL" do + test "#view with response redirects to URL when autoredirect is set" do response = [200, {}, ["OK"]] profile = BaseProfile.from_stackprof(stackprof_profile) viewer = SpeedscopeRemoteViewer.new(profile) id = SpeedscopeRemoteViewer::Middleware.id(profile.file) - viewer.view(response: response) + viewer.view(response: response, autoredirect: true) assert_equal(303, response[0]) assert_equal("/app_profiler/#{id}", response[1]["Location"])