mirror of https://github.com/containers/podman.git
Fix tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #557 Approved by: rhatdan
This commit is contained in:
parent
b0526caa93
commit
d0c9835631
|
@ -35,7 +35,7 @@ func TestBuildContainerGraphOneCtr(t *testing.T) {
|
||||||
assert.Equal(t, ctr1.ID(), node.id)
|
assert.Equal(t, ctr1.ID(), node.id)
|
||||||
|
|
||||||
assert.Equal(t, ctr1.ID(), graph.noDepNodes[0].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) {
|
func TestBuildContainerGraphTwoCtrNoEdge(t *testing.T) {
|
||||||
|
@ -81,7 +81,7 @@ func TestBuildContainerGraphTwoCtrOneEdge(t *testing.T) {
|
||||||
assert.Equal(t, 1, len(graph.notDependedOnNodes))
|
assert.Equal(t, 1, len(graph.notDependedOnNodes))
|
||||||
|
|
||||||
assert.Equal(t, ctr1.ID(), graph.noDepNodes[0].id)
|
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) {
|
func TestBuildContainerGraphTwoCtrCycle(t *testing.T) {
|
||||||
|
@ -190,7 +190,7 @@ func TestBuildContainerGraphThreeContainersNoCycle(t *testing.T) {
|
||||||
assert.Equal(t, 1, len(graph.notDependedOnNodes))
|
assert.Equal(t, 1, len(graph.notDependedOnNodes))
|
||||||
|
|
||||||
assert.Equal(t, ctr3.ID(), graph.noDepNodes[0].id)
|
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) {
|
func TestBuildContainerGraphFourContainersNoEdges(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue