Skip to content

Commit

Permalink
fixes unit tests for NVMe (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
delldubey authored Jun 25, 2024
1 parent 59f78eb commit d7b15e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,7 @@ func newInitiator(initiatorID string, initiatorName string, initiatorType string
InitiatorType: initiatorType,
FCID: "0",
IPAddress: "192.168.1.175",
Host: hostID,
HostID: hostID,
HostGroupIDs: []string{},
LoggedIn: true,
Expand Down Expand Up @@ -2464,6 +2465,7 @@ func AddHost(hostID string, hostType string, initiatorIDs []string) (*types.Host
for k, v := range Data.InitiatorIDToInitiator {
if v.InitiatorID == initID {
Data.InitiatorIDToInitiator[k].HostID = hostID
Data.InitiatorIDToInitiator[k].Host = hostID
break
}
}
Expand Down

0 comments on commit d7b15e8

Please sign in to comment.