Skip to content

Commit

Permalink
attempt to fix flaky test (#3721)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Aug 9, 2024
1 parent f57068e commit 18f4a94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/dashboard/test/system/project_manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,7 @@ def add_auto_environment_variable(project_id, script_id, save: true)
find('i.fa-atom').click
input_data = File.read('test/fixtures/projects/chemistry-5533/assignment_1.sh')

project_id = URI.parse(current_url).path.split('/').last

# note that we're using pzs1715 from sacctmgr_show_accts_alt.txt instead of psz0175
# NOTE: we're using pzs1715 from sacctmgr_show_accts_alt.txt instead of psz0175
# from the template.
Open3
.stubs(:capture3)
Expand All @@ -956,6 +954,10 @@ def add_auto_environment_variable(project_id, script_id, save: true)

find("#launch_8woi7ghd").click
assert_selector('.alert-success', text: 'job-id-123')

# sleep here because this test can error with Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir
# something still has a hold on these files.
sleep 2
end
end
end

0 comments on commit 18f4a94

Please sign in to comment.