Skip to content

Commit a820a45

Browse files
committed
trying to pass ci lint
1 parent 1d03375 commit a820a45

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

control_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ func TestDecodeControl(t *testing.T) {
154154
want: &ControlBeheraPasswordPolicy{Expire: -1, Grace: -1, Error: 8, ErrorString: "New password is in list of old passwords"}, wantErr: false},
155155
}
156156
for i := range tests {
157-
addControlDescriptions(tests[i].args.packet)
157+
err := addControlDescriptions(tests[i].args.packet)
158+
if err != nil {
159+
t.Fatal(err)
160+
}
158161
tests[i].args.packet = tests[i].args.packet.Children[0]
159162
}
160163

v3/control_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ func TestDecodeControl(t *testing.T) {
154154
want: &ControlBeheraPasswordPolicy{Expire: -1, Grace: -1, Error: 8, ErrorString: "New password is in list of old passwords"}, wantErr: false},
155155
}
156156
for i := range tests {
157-
addControlDescriptions(tests[i].args.packet)
157+
err := addControlDescriptions(tests[i].args.packet)
158+
if err != nil {
159+
t.Fatal(err)
160+
}
158161
tests[i].args.packet = tests[i].args.packet.Children[0]
159162
}
160163

0 commit comments

Comments
 (0)