mirror of
https://github.com/status-im/status-go.git
synced 2025-02-06 11:56:01 +00:00
fix_: add gofakeit creds
This commit is contained in:
parent
091260c37f
commit
6c66439f26
@ -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))
|
||||
|
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user