Skip to content

Commit

Permalink
trying to pass ci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zach593 committed Jul 17, 2020
1 parent 1d03375 commit a820a45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ func TestDecodeControl(t *testing.T) {
want: &ControlBeheraPasswordPolicy{Expire: -1, Grace: -1, Error: 8, ErrorString: "New password is in list of old passwords"}, wantErr: false},
}
for i := range tests {
addControlDescriptions(tests[i].args.packet)
err := addControlDescriptions(tests[i].args.packet)
if err != nil {
t.Fatal(err)
}
tests[i].args.packet = tests[i].args.packet.Children[0]
}

Expand Down
5 changes: 4 additions & 1 deletion v3/control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ func TestDecodeControl(t *testing.T) {
want: &ControlBeheraPasswordPolicy{Expire: -1, Grace: -1, Error: 8, ErrorString: "New password is in list of old passwords"}, wantErr: false},
}
for i := range tests {
addControlDescriptions(tests[i].args.packet)
err := addControlDescriptions(tests[i].args.packet)
if err != nil {
t.Fatal(err)
}
tests[i].args.packet = tests[i].args.packet.Children[0]
}

Expand Down

0 comments on commit a820a45

Please sign in to comment.