From 91970364992e2bd1dd57f5fe1afc296701617888 Mon Sep 17 00:00:00 2001 From: Trey Tabner Date: Wed, 30 May 2018 11:00:58 -0500 Subject: [PATCH] The restart command was moved to after the loop --- test/unit/plugins/guests/debian/cap/configure_networks_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/plugins/guests/debian/cap/configure_networks_test.rb b/test/unit/plugins/guests/debian/cap/configure_networks_test.rb index 13ccea1b6..c0a0a91a7 100644 --- a/test/unit/plugins/guests/debian/cap/configure_networks_test.rb +++ b/test/unit/plugins/guests/debian/cap/configure_networks_test.rb @@ -111,7 +111,7 @@ describe "VagrantPlugins::GuestDebian::Cap::ConfigureNetworks" do expect(comm.received_commands[0]).to match("mv -f '/tmp/vagrant-network-entry.*' '/etc/systemd/network/.*network'") expect(comm.received_commands[0]).to match("chown") expect(comm.received_commands[0]).to match("chmod") - expect(comm.received_commands[0]).to match("systemctl restart") + expect(comm.received_commands[2]).to match("systemctl restart") end end