Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Aug 27, 2018
1 parent f490041 commit 11df4dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1654,9 +1654,8 @@ curl http://localhost:7890/v1/ovs/portstats?nodeName=vortex-dev&bridgeName=syste

Response Data:

```json
```json=
{
...
{
"PortID": 2,
"received": {
Expand All @@ -1672,7 +1671,6 @@ Response Data:
"errors": 0,
"collisions": 0
}
},
...
}
}
```
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 11df4dd

Please sign in to comment.