Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
brianleshopify committed May 22, 2024
1 parent 9205b58 commit 638082f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/app_profiler/viewer/speedscope_remote_viewer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 638082f

Please sign in to comment.