walletunlocker: fix typos in the tests

This commit is contained in:
yyforyongyu
2025-07-15 19:56:01 +08:00
parent 3a6e656faa
commit c643c47288

View File

@@ -140,7 +140,7 @@ func openOrCreateTestMacStore(tempDir string, pw *[]byte,
return store, nil return store, nil
} }
// TestGenSeedUserEntropy tests that the gen seed method generates a valid // TestGenSeed tests that the gen seed method generates a valid
// cipher seed mnemonic phrase and user provided source of entropy. // cipher seed mnemonic phrase and user provided source of entropy.
func TestGenSeed(t *testing.T) { func TestGenSeed(t *testing.T) {
t.Parallel() t.Parallel()
@@ -173,8 +173,8 @@ func TestGenSeed(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
} }
// TestGenSeedInvalidEntropy tests that the gen seed method generates a valid // TestGenSeedGenerateEntropy tests that the gen seed method generates a valid
// cipher seed mnemonic pass phrase even when the user doesn't provide its own // cipher seed mnemonic passphrase even when the user doesn't provide its own
// source of entropy. // source of entropy.
func TestGenSeedGenerateEntropy(t *testing.T) { func TestGenSeedGenerateEntropy(t *testing.T) {
t.Parallel() t.Parallel()
@@ -318,7 +318,7 @@ func TestInitWallet(t *testing.T) {
require.Error(t, err) require.Error(t, err)
} }
// TestInitWalletInvalidCipherSeed tests that if we attempt to create a wallet // TestCreateWalletInvalidEntropy tests that if we attempt to create a wallet
// with an invalid cipher seed, then we'll receive an error. // with an invalid cipher seed, then we'll receive an error.
func TestCreateWalletInvalidEntropy(t *testing.T) { func TestCreateWalletInvalidEntropy(t *testing.T) {
t.Parallel() t.Parallel()
@@ -344,7 +344,7 @@ func TestCreateWalletInvalidEntropy(t *testing.T) {
require.Error(t, err) require.Error(t, err)
} }
// TestUnlockWallet checks that trying to unlock non-existing wallet fail, that // TestUnlockWallet checks that trying to unlock non-existing wallet fails, that
// unlocking existing wallet with wrong passphrase fails, and that unlocking // unlocking existing wallet with wrong passphrase fails, and that unlocking
// existing wallet with correct passphrase succeeds. // existing wallet with correct passphrase succeeds.
func TestUnlockWallet(t *testing.T) { func TestUnlockWallet(t *testing.T) {
@@ -530,8 +530,8 @@ func TestChangeWalletPasswordNewRootKey(t *testing.T) {
} }
// TestChangeWalletPasswordStateless checks that trying to change the password // TestChangeWalletPasswordStateless checks that trying to change the password
// of an existing wallet that was initialized stateless works when when the // of an existing wallet that was initialized stateless works when the
// --stateless_init flat is set. Also checks that if no password is given, // --stateless_init flag is set. Also checks that if no password is given,
// the default password is used. // the default password is used.
func TestChangeWalletPasswordStateless(t *testing.T) { func TestChangeWalletPasswordStateless(t *testing.T) {
t.Parallel() t.Parallel()