Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/shortenertestbeta/iteration14_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,14 @@ func (suite *Iteration14Suite) TestAuth() {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

// создаем cookie jar что бы сервер не возвращал 401 Unauthorized
jar, err := cookiejar.New(nil)
suite.Require().NoError(err, "Неожиданная ошибка при создании Cookie Jar")

// запрашиваем список URL без имеющихся идентификаторов
req := resty.New().
SetBaseURL(suite.serverAddress).
SetCookieJar(jar).
R()
resp, err := req.
SetContext(ctx).
Expand Down