Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/commands/mentor/request/lock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def call

Mentor::RequestLock.create!(
request:,
locked_until: Time.zone.now + 30.minutes,
locked_until: Time.zone.now + 60.minutes,
locked_by: mentor
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const StartMentoringPanel = ({
Start mentoring
</button>
<div className="note">
You have 30 minutes until the session returns to the queue for others to
You have 60 minutes until the session returns to the queue for others to
mentor.
</div>
{status === 'loading' ? <Loading /> : null}
Expand Down
6 changes: 3 additions & 3 deletions test/commands/mentor/request/lock_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Mentor::Request::LockTest < ActiveSupport::TestCase

assert request.reload.locked?
lock = request.locks.last
assert_equal Time.current + 30.minutes, lock.locked_until
assert_equal Time.current + 60.minutes, lock.locked_until
assert_equal mentor, lock.locked_by
end
end
Expand All @@ -25,7 +25,7 @@ class Mentor::Request::LockTest < ActiveSupport::TestCase

assert request.reload.locked?
lock = request.locks.last
assert_equal Time.current + 30.minutes, lock.locked_until
assert_equal Time.current + 60.minutes, lock.locked_until
assert_equal mentor, lock.locked_by
end
end
Expand All @@ -40,7 +40,7 @@ class Mentor::Request::LockTest < ActiveSupport::TestCase

assert request.reload.locked?
lock = request.locks.last
assert_equal Time.current + 30.minutes, lock.locked_until
assert_equal Time.current + 60.minutes, lock.locked_until
assert_equal mentor, lock.locked_by
end
end
Expand Down