Skip to content

Commit

Permalink
try again with the sleep command
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Jun 24, 2024
1 parent f37eff9 commit 526a29c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mesh/Meshing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function remove_mesh!(proj::Project)
rm(fileName)
# Get the control file name of the current project
fileName = joinpath(proj.projectDirectory,proj.name) * ".control"
rm(fileName; force=true)
rm(fileName)
fileName = getPlotFileName(proj)
rm(fileName)
fileName = getStatsFileName(proj)
Expand Down
6 changes: 6 additions & 0 deletions test/test_visualization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ using CairoMakie
# Create the mesh which contains a plotting update for ISM
@test_nowarn generate_mesh(p_visu, verbose=true)

# 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 @@ -92,6 +95,9 @@ using CairoMakie
# Create the mesh which contains a plotting update for ISM-V2
@test_nowarn generate_mesh(p_visu)

# 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 526a29c

Please sign in to comment.