Add codespell job (#1281)

add codespell workflow and fixed spelling issues
This commit is contained in:
Maycon Santos
2023-11-07 13:37:57 +01:00
committed by GitHub
parent 125a7a9daf
commit b726b3262d
15 changed files with 42 additions and 28 deletions

View File

@@ -251,7 +251,7 @@ func TestAccountManager_GetOrCreateAccountByUser(t *testing.T) {
}
if account != nil && account.Users[userID] == nil {
t.Fatalf("expected to create an account for a user %s but no user was found after creation udner the account %s", userID, account.Id)
t.Fatalf("expected to create an account for a user %s but no user was found after creation under the account %s", userID, account.Id)
return
}
@@ -626,7 +626,7 @@ func TestAccountManager_PrivateAccount(t *testing.T) {
}
if account != nil && account.Users[userId] == nil {
t.Fatalf("expected to create an account for a user %s but no user was found after creation udner the account %s", userId, account.Id)
t.Fatalf("expected to create an account for a user %s but no user was found after creation under the account %s", userId, account.Id)
}
}
@@ -1385,7 +1385,7 @@ func TestAccount_Copy(t *testing.T) {
if err != nil {
t.Fatal(err)
}
account.Peers["peer1"].Status.Connected = false // we change original object to confirm that copy wont change
account.Peers["peer1"].Status.Connected = false // we change original object to confirm that copy won't change
accCopyBytes, err := json.Marshal(accountCopy)
if err != nil {
t.Fatal(err)