Skip to content

Commit 6c143d7

Browse files
committed
Fix tests on Windows
1 parent 257b1a5 commit 6c143d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_pg_ldap_sync.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def log_and_run( *cmd )
2222
unless $?.success?
2323
$stderr.puts "Command failed: [%s]\n%s" % [cmd.join(' '), File.read(fname)]
2424
end
25-
File.unlink fname
25+
File.unlink fname rescue nil # File is locked on Windows
2626
raise "Command failed: [%s]" % [cmd.join(' ')] unless $?.success?
2727
end
2828
end

0 commit comments

Comments
 (0)