tokens: fix tests

Broken by afbb9d51f1 which changed some
strings.
This commit is contained in:
Roman Khimov 2021-04-30 19:02:30 +03:00
parent ebd3ad8842
commit 7ba5aed9ca

View file

@ -82,17 +82,17 @@ func Test_fetchBearerToken(t *testing.T) {
}{
{name: "empty"},
{name: "bad base64 header", header: "WRONG BASE64", error: "could not fetch marshaled from base64"},
{name: "bad base64 cookie", cookie: "WRONG BASE64", error: "could not fetch marshaled from base64"},
{name: "bad base64 header", header: "WRONG BASE64", error: "can't base64-decode bearer token"},
{name: "bad base64 cookie", cookie: "WRONG BASE64", error: "can't base64-decode bearer token"},
{name: "header token unmarshal error", header: "dGVzdAo=", error: "could not unmarshal bearer token"},
{name: "cookie token unmarshal error", cookie: "dGVzdAo=", error: "could not unmarshal bearer token"},
{name: "header token unmarshal error", header: "dGVzdAo=", error: "can't unmarshal bearer token"},
{name: "cookie token unmarshal error", cookie: "dGVzdAo=", error: "can't unmarshal bearer token"},
{
name: "bad header and cookie",
header: "WRONG BASE64",
cookie: "dGVzdAo=",
error: "could not unmarshal bearer token",
error: "can't unmarshal bearer token",
},
{