Skip to content

Commit

Permalink
Don't use sudo if not needed at tests (#234)
Browse files Browse the repository at this point in the history
Signed-off-by: Quique Llorente <[email protected]>
  • Loading branch information
qinqon authored and phoracek committed Oct 23, 2019
1 parent 29bc841 commit 9d49e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/rollback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ var _ = Describe("rollback", func() {
Context("when an error happens during state configuration", func() {
BeforeEach(func() {
By("Rename vlan-filtering to vlan-filtering.bak to force failure during state configuration")
runAtPods("sudo", "mv", "/usr/local/bin/vlan-filtering", "/usr/local/bin/vlan-filtering.bak")
runAtPods("mv", "/usr/local/bin/vlan-filtering", "/usr/local/bin/vlan-filtering.bak")
})
AfterEach(func() {
By("Rename vlan-filtering.bak to vlan-filtering to leave it as it was")
runAtPods("sudo", "mv", "/usr/local/bin/vlan-filtering.bak", "/usr/local/bin/vlan-filtering")
runAtPods("mv", "/usr/local/bin/vlan-filtering.bak", "/usr/local/bin/vlan-filtering")
updateDesiredState(linuxBrAbsent(bridge1))
for _, node := range nodes {
interfacesNameForNodeEventually(node).ShouldNot(ContainElement(bridge1))
Expand Down

0 comments on commit 9d49e0c

Please sign in to comment.