From 36838d36b7c11f9f33e10918ccafda479a54db29 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 18 Jul 2016 22:38:27 -0400 Subject: [PATCH] Fix failing test --- lib/vagrant/plugin/state_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/plugin/state_file.rb b/lib/vagrant/plugin/state_file.rb index fc9060849..c80ee658c 100644 --- a/lib/vagrant/plugin/state_file.rb +++ b/lib/vagrant/plugin/state_file.rb @@ -97,8 +97,8 @@ module Vagrant f.binmode f.write(JSON.dump(@data)) f.fsync - f.close f.chmod(0644) + f.close FileUtils.mv(f.path, @path) end end