Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Aug 24, 2018
1 parent f490041 commit 0a12f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ovscontroller/ovs_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (suite *OVSControllerTestSuite) SetupSuite() {
fakeclient := fakeclientset.NewSimpleClientset()
suite.sp.KubeCtl = kc.New(fakeclient)

suite.bridgeName = namesgenerator.GetRandomName(0)
suite.bridgeName = namesgenerator.GetRandomName(0)[0:6]

// Create a fake clinet
// Initial nodes
Expand All @@ -72,7 +72,7 @@ func (suite *OVSControllerTestSuite) SetupSuite() {
})
suite.NoError(err)

exec.Command("ovs-vsctl", "add-br", suite.bridgeName).Run()
execute(&suite.Suite, exec.Command("ovs-vsctl", "add-br", suite.bridgeName))
}

func (suite *OVSControllerTestSuite) TearDownSuite() {
Expand Down

0 comments on commit 0a12f1a

Please sign in to comment.