Skip to content

Commit

Permalink
Merge pull request skydive-project#566 from lebauce/fix-test-sort
Browse files Browse the repository at this point in the history
tests: add settle test to TestSort
  • Loading branch information
safchain authored Nov 9, 2017
2 parents c4771fb + 502e99b commit 4118b23
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,19 @@ func TestSort(t *testing.T) {
{"ovs-vsctl add-port br-int src-vm2-eth0", true},
},

settleFunction: func(c *TestContext) (err error) {
if _, err = c.gh.GetNode("G.V().Has('Name', 'src1-eth0', 'State', 'UP')"); err != nil {
return
}

if _, err = c.gh.GetNode("G.V().Has('Name', 'src2-eth0', 'State', 'UP')"); err != nil {
return
}

_, err = c.gh.GetNode("G.V().Has('Name', 'dst-eth0', 'State', 'UP')")
return
},

setupFunction: func(c *TestContext) (err error) {
if err = ping(t, c, 4, "G.V().Has('Name', 'src1-eth0')", "G.V().Has('Name', 'dst-eth0')", 10, 0); err != nil {
return
Expand Down

0 comments on commit 4118b23

Please sign in to comment.