Skip to content

Commit

Permalink
fix missing paramater in settings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solipsis committed Jun 6, 2019
1 parent 2384ea0 commit b4ddb77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/keepkey/messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ func TestChangeLabel(t *testing.T) {
l1 := "TestLabel"
l2 := "pot@t0"

if err := kk.ApplySettings(l1, "", false); err != nil {
if err := kk.ApplySettings(l1, "", false, 1000); err != nil {
t.Error("Failed to update label:", err)
}
if feat, err := kk.GetFeatures(); err != nil || feat.GetLabel() != l1 {
t.Errorf("Expected label to be %s but was %s with error %s", l1, feat.GetLabel(), err)
}

// Change label again
if err := kk.ApplySettings(l2, "", false); err != nil {
if err := kk.ApplySettings(l2, "", false, 1000); err != nil {
t.Error("Failed to update label:", err)
}
if feat, err := kk.GetFeatures(); err != nil || feat.GetLabel() != l2 {
Expand All @@ -102,15 +102,15 @@ func TestChangeLabel(t *testing.T) {

func TestEnablePassphrase(t *testing.T) {

if err := kk.ApplySettings("", "", true); err != nil {
if err := kk.ApplySettings("", "", true, 1000); err != nil {
t.Error("Failed to enable passphrase:", err)
}
if feat, err := kk.GetFeatures(); err != nil || !feat.GetPassphraseProtection() {
t.Errorf("Expected passphrase to be enabled but wasn't with error %s", err)
}

// Disable the passphrase
if err := kk.ApplySettings("", "", false); err != nil {
if err := kk.ApplySettings("", "", false, 1000); err != nil {
t.Error("Failed to disable passphrase:", err)
}
if feat, err := kk.GetFeatures(); err != nil || feat.GetPassphraseProtection() {
Expand Down

0 comments on commit b4ddb77

Please sign in to comment.