Skip to content

Commit

Permalink
Travel in between totp requests
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins authored and simi committed Aug 28, 2024
1 parent 58f55fe commit 0562dcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/api/v1/deletions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ class Api::V1::DeletionsControllerTest < ActionController::TestCase

should "not include mfa warnings" do
@gems.each_value do |gem|
travel_to 30.seconds.from_now

@request.env["HTTP_OTP"] = ROTP::TOTP.new(@user.totp_seed).now
delete :create, params: { gem_name: gem[:name], version: gem[:version] }

Expand Down

0 comments on commit 0562dcb

Please sign in to comment.