diff options
Diffstat (limited to 'libpod/container_graph_test.go')
-rw-r--r-- | libpod/container_graph_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/container_graph_test.go b/libpod/container_graph_test.go index 2303a05dd..bba3d7aad 100644 --- a/libpod/container_graph_test.go +++ b/libpod/container_graph_test.go @@ -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) { |