Skip to content

Commit

Permalink
Update AddNIC test to use correct expected error value
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Baldauf <[email protected]>
  • Loading branch information
katiewasnothere committed Jan 5, 2022
1 parent 13e30f2 commit bfd6382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ncproxy/ncproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *grpcService) AddNIC(ctx context.Context, req *ncproxygrpc.AddNICRequest
}
policies := []hcn.EndpointPolicy{iovPolicy}
if err := modifyEndpoint(ctx, ep.Id, policies, hcn.RequestTypeUpdate); err != nil {
return nil, errors.Wrap(err, "failed to add policy to endpointf")
return nil, errors.Wrap(err, "failed to add policy to endpoint")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ncproxy/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func TestAddNIC_HCN(t *testing.T) {
iovPolicySettings: &ncproxygrpc.IovEndpointPolicySetting{
IovOffloadWeight: 100,
},
errorExpected: true,
errorExpected: false,
},
}

Expand Down

0 comments on commit bfd6382

Please sign in to comment.