Skip to content

Commit

Permalink
address linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyaliqbal2024 committed Dec 18, 2024
1 parent 4ad1c4e commit 83185e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func TestSetApprovedIps(t *testing.T) {

func TestDeleteSdc(t *testing.T) {
type testCase struct {
Id string
ID string
expected error
}

Expand All @@ -485,11 +485,11 @@ func TestDeleteSdc(t *testing.T) {

cases := []testCase{
{
Id: "127.0.0.1",
ID: "127.0.0.1",
expected: nil,
},
{
Id: "10.10.10.10",
ID: "10.10.10.10",
expected: errors.New("Request message is not valid: The following parameter(s) must be part of the request body: sdcId"),
},
}
Expand All @@ -510,7 +510,7 @@ func TestDeleteSdc(t *testing.T) {
System: &system,
}

err2 := s.DeleteSdc(tc.Id)
err2 := s.DeleteSdc(tc.ID)
if err2 != nil {
if tc.expected == nil {
t.Errorf("Approving SDC IPs did not work as expected, \n\tgot: %s \n\twant: %v", err2, tc.expected)
Expand Down

0 comments on commit 83185e5

Please sign in to comment.