X Tutup
Skip to content

Commit 61609db

Browse files
committed
Cover HTTP 402 in oauth tests
1 parent 9364252 commit 61609db

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

auth/oauth_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@ func Test_detectDeviceFlow(t *testing.T) {
188188
doFallback: true,
189189
wantErr: "",
190190
},
191+
{
192+
name: "402 payment required",
193+
args: args{
194+
statusCode: 402,
195+
values: nil,
196+
},
197+
doFallback: false,
198+
wantErr: "error: HTTP 402",
199+
},
191200
{
192201
name: "400 bad request",
193202
args: args{

0 commit comments

Comments
 (0)
X Tutup