Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Nov 30, 2023
1 parent e5ab524 commit 6cc9d9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clab/clab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func getNodeMap(mockCtrl *gomock.Controller) map[string]nodes.Node {
Image: "alpine:3",
ShortName: "node2",
WaitFor: map[types.WaitForPhase][]*types.WaitFor{
"configure": {
"create": {
{
Node: "node1",
},
Expand All @@ -91,7 +91,7 @@ func getNodeMap(mockCtrl *gomock.Controller) map[string]nodes.Node {
NetworkMode: "container:node2",
ShortName: "node3",
WaitFor: map[types.WaitForPhase][]*types.WaitFor{
"configure": {
"create": {
{
Node: "node1",
},
Expand Down Expand Up @@ -122,7 +122,7 @@ func getNodeMap(mockCtrl *gomock.Controller) map[string]nodes.Node {
MgmtIPv4Address: "172.10.10.2",
ShortName: "node5",
WaitFor: map[types.WaitForPhase][]*types.WaitFor{
"configure": {
"create": {
{
Node: "node3",
},
Expand Down Expand Up @@ -158,8 +158,8 @@ func Test_createWaitForDependency(t *testing.T) {
nodeMap := getNodeMap(mockCtrl)

dm.EXPECT().AddDependency("node2", types.WaitForCreate, "node1", types.WaitForCreate)
dm.EXPECT().AddDependency("node3", types.WaitForCreate, "node2", types.WaitForCreate)
dm.EXPECT().AddDependency("node3", types.WaitForCreate, "node1", types.WaitForCreate)
dm.EXPECT().AddDependency("node3", types.WaitForCreate, "node2", types.WaitForCreate)
dm.EXPECT().AddDependency("node5", types.WaitForCreate, "node3", types.WaitForCreate)
dm.EXPECT().AddDependency("node5", types.WaitForCreate, "node4", types.WaitForCreate)

Expand Down

0 comments on commit 6cc9d9e

Please sign in to comment.