Skip to content

Commit

Permalink
[test] refs #279 - Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
e1Ru1o committed Jan 20, 2020
1 parent 6f146ea commit 6d1a764
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/coin/skycoin/models/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1704,9 +1704,9 @@ func TestSkycoinLocalWalletEncrypt(t *testing.T) {
clean := err == nil

tt.srv.Encrypt(tt.name, tt.pwd)
encrypted, _ := tt.srv.IsEncrypted(tt.name)
encrypted, _ := tt.srv.IsEncrypted(tt.name) // nolint gosec
if clean {
_ = wallet.Save(wlt, tt.srv.walletDir)
_ = wallet.Save(wlt, tt.srv.walletDir) // nolint gosec
}
require.Equal(t, tt.valid, encrypted)
})
Expand Down Expand Up @@ -1739,9 +1739,9 @@ func TestSkycoinLocalWalletDecrypt(t *testing.T) {
clean := err == nil

tt.srv.Decrypt(tt.name, tt.pwd)
encrypted, _ := tt.srv.IsEncrypted(tt.name)
encrypted, _ := tt.srv.IsEncrypted(tt.name) // nolint gosec
if clean {
_ = wallet.Save(wlt, tt.srv.walletDir)
_ = wallet.Save(wlt, tt.srv.walletDir) // nolint gosec
}
require.Equal(t, tt.valid, encrypted)
})
Expand Down Expand Up @@ -1786,7 +1786,7 @@ func TestWalletsReadyForTxn(t *testing.T) {
mock.AnythingOfType("*mocks.Transaction"),
).Return(
func(w core.Wallet, txn core.Transaction) bool {
ok, _ := checkTxnSupported(mockWlt, w, txn)
ok, _ := checkTxnSupported(mockWlt, w, txn) // nolint gosec
return ok
},
nil,
Expand Down Expand Up @@ -1948,8 +1948,8 @@ func TestSeedServiceGenerateMnemonic(t *testing.T) {

func TestSeedServiceVerifyMnemonic(t *testing.T) {
srv := new(SeedService)
mnc128, _ := srv.GenerateMnemonic(128)
mnc256, _ := srv.GenerateMnemonic(256)
mnc128, _ := srv.GenerateMnemonic(128) // nolint gosec
mnc256, _ := srv.GenerateMnemonic(256) // nolint gosec
tests := []struct {
name string
mnemonic string
Expand Down

0 comments on commit 6d1a764

Please sign in to comment.