diff --git a/spec/github_pages_health_check/domain_spec.rb b/spec/github_pages_health_check/domain_spec.rb index 4591946..a8313bc 100644 --- a/spec/github_pages_health_check/domain_spec.rb +++ b/spec/github_pages_health_check/domain_spec.rb @@ -682,7 +682,7 @@ ) # Confirm port 9986 was NOT hit (it is the FTP one) - expect(File.exist?(log_file)).to be_truthy + sleep(0.1) until File.exist?(log_file) expect(File.read(log_file).strip).to eq("HIT 9988 HIT 9987") end end