Skip to content

Commit 40b5ada

Browse files
committed
PR feedback (move RNG seeding to test with comment).
1 parent 1b5e001 commit 40b5ada

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dashboard/test/controllers/api_controller_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class ApiControllerTest < ActionController::TestCase
3030
@student_flappy_1 = create(:follower, section: @flappy_section).student_user
3131
@student_flappy_1.backfill_user_scripts
3232
@student_flappy_1.reload
33-
34-
# Seed the RNG deterministically.
35-
srand 1
3633
end
3734

3835
def create_script_with_lockable_stage
@@ -236,6 +233,9 @@ def make_progress_in_section(script)
236233
end
237234

238235
test "should get surveys for section with script with anonymous level_group assessment" do
236+
# Seed the RNG deterministically so we get the same "random" shuffling of results.
237+
srand 1
238+
239239
script = create :script
240240

241241
sub_level1 = create :text_match, name: 'level_free_response', type: 'TextMatch'

0 commit comments

Comments
 (0)