Fix tests

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #557
Approved by: rhatdan
This commit is contained in:
Matthew Heon
2018-03-28 10:56:59 -04:00
committed by Atomic Bot
parent b0526caa93
commit d0c9835631

View File

@ -35,7 +35,7 @@ func TestBuildContainerGraphOneCtr(t *testing.T) {
assert.Equal(t, ctr1.ID(), node.id)
assert.Equal(t, ctr1.ID(), graph.noDepNodes[0].id)
assert.Equal(t, ctr1.ID(), graph.notDependedOnNodes[0].id)
assert.Equal(t, ctr1.ID(), graph.notDependedOnNodes[ctr1.ID()].id)
}
func TestBuildContainerGraphTwoCtrNoEdge(t *testing.T) {
@ -81,7 +81,7 @@ func TestBuildContainerGraphTwoCtrOneEdge(t *testing.T) {
assert.Equal(t, 1, len(graph.notDependedOnNodes))
assert.Equal(t, ctr1.ID(), graph.noDepNodes[0].id)
assert.Equal(t, ctr2.ID(), graph.notDependedOnNodes[0].id)
assert.Equal(t, ctr2.ID(), graph.notDependedOnNodes[ctr2.ID()].id)
}
func TestBuildContainerGraphTwoCtrCycle(t *testing.T) {
@ -190,7 +190,7 @@ func TestBuildContainerGraphThreeContainersNoCycle(t *testing.T) {
assert.Equal(t, 1, len(graph.notDependedOnNodes))
assert.Equal(t, ctr3.ID(), graph.noDepNodes[0].id)
assert.Equal(t, ctr1.ID(), graph.notDependedOnNodes[0].id)
assert.Equal(t, ctr1.ID(), graph.notDependedOnNodes[ctr1.ID()].id)
}
func TestBuildContainerGraphFourContainersNoEdges(t *testing.T) {