chore: fix dropped errors in tests

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
This commit is contained in:
Lars Lehtonen 2024-02-10 02:26:54 -08:00 committed by GitHub
parent 3ce385ef23
commit 968cc0eb82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,6 +28,9 @@ func setTTL(table, coldStorage, toColdTTL, deleteTTL string, jwtToken string) ([
}
var bearer = "Bearer " + jwtToken
req, err := http.NewRequest("POST", endpoint+"/api/v1/settings/ttl?"+params, nil)
if err != nil {
return nil, err
}
req.Header.Add("Authorization", bearer)
resp, err := client.Do(req)
@ -129,6 +132,7 @@ func getTTL(t *testing.T, table string, jwtToken string) *model.GetTTLResponseIt
var bearer = "Bearer " + jwtToken
req, err := http.NewRequest("GET", url, nil)
require.NoError(t, err)
req.Header.Add("Authorization", bearer)
resp, err := client.Do(req)