fix_: add gofakeit creds

This commit is contained in:
Andrey Bocharnikov 2025-01-13 16:08:17 +04:00 committed by Dario Gabriel Lipicar
parent 091260c37f
commit 6c66439f26
No known key found for this signature in database
GPG Key ID: 9625E9494309D203
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ import (
"github.com/status-im/status-go/params/networkhelper"
"github.com/brianvoe/gofakeit/v6"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@ -129,7 +130,7 @@ func TestGetClientsUsingCache(t *testing.T) {
"/api.status.im/infura/bar",
"/api.status.im/infura.io/baz",
}
user, password := "user1", "pass1"
user, password := gofakeit.Username(), gofakeit.LetterN(5)
authHandler := func(w http.ResponseWriter, r *http.Request) {
authToken := base64.StdEncoding.EncodeToString([]byte(user + ":" + password))

View File

@ -12,6 +12,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/event"
"github.com/brianvoe/gofakeit/v6"
"github.com/stretchr/testify/require"
gomock "go.uber.org/mock/gomock"
@ -139,7 +140,7 @@ func TestAPI_GetAddressDetails(t *testing.T) {
},
}
networks, err = rpc.UpdateEmbeddedProxyProviders(networks, true, "user1", "pass1")
networks, err = rpc.UpdateEmbeddedProxyProviders(networks, true, gofakeit.Username(), gofakeit.LetterN(5))
require.NoError(t, err)
config := rpc.ClientConfig{