Skip to content

Commit

Permalink
add better comment and cleanup unnecessary sleep commands
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Jun 25, 2024
1 parent 8469747 commit 621228c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/test_visualization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ using CairoMakie
@test_nowarn generate_mesh(p_visu, verbose=true)

# Explicitly call the garbage collector to remove any temporaries
# before an attempt to delete any files
# before an attempt to delete any files. Helps avoid an error of type
# `IOError: unlink("some_file"): resource busy or locked (EBUSY)`
# on Windows CI runners
GC.gc()

# # Add a delay to ensure that the Windows system has released the file handles
# sleep(2.0) # arbitrarily pick 2 seconds

# Destroy the mesh and reset the background grid
@test_nowarn remove_mesh!(p_visu)

Expand Down Expand Up @@ -100,12 +99,11 @@ using CairoMakie
@test_nowarn generate_mesh(p_visu)

# Explicitly call the garbage collector to remove any temporaries
# before an attempt to delete any files
# before an attempt to delete any files. Helps avoid an error of type
# `IOError: unlink("some_file"): resource busy or locked (EBUSY)`
# on Windows CI runners
GC.gc()

# Add a delay to ensure that the Windows system has released the file handles
# sleep(2.0) # arbitrarily pick 2 seconds

# Destroy the mesh and reset the background grid
@test_nowarn remove_mesh!(p_visu)

Expand Down

0 comments on commit 621228c

Please sign in to comment.