Fix tests on Windows
This commit is contained in:
parent
257b1a5e49
commit
6c143d74c2
@ -22,7 +22,7 @@ class TestPgLdapSync < Minitest::Test
|
||||
unless $?.success?
|
||||
$stderr.puts "Command failed: [%s]\n%s" % [cmd.join(' '), File.read(fname)]
|
||||
end
|
||||
File.unlink fname
|
||||
File.unlink fname rescue nil # File is locked on Windows
|
||||
raise "Command failed: [%s]" % [cmd.join(' ')] unless $?.success?
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user