Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyunchen committed Jun 1, 2018
1 parent 20fbde1 commit ff855dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ovs/ovs_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package ovs

import (
"github.com/stretchr/testify/assert"
"os"
"testing"

"github.com/stretchr/testify/assert"
)

func TestAddBridge(t *testing.T) {
Expand All @@ -15,10 +16,10 @@ func TestAddBridge(t *testing.T) {
err := AddBridge(bridgeName)
defer DeleteBridge(bridgeName)
assert.NoError(t, err)
assert.Equal(t, 1, len(bridges))

bridges, err := ListBridges()
assert.NoError(t, err)
assert.Equal(t, 1, len(bridges))
}

func TestDeleteBridge(t *testing.T) {
Expand Down

0 comments on commit ff855dd

Please sign in to comment.