write code to actually call ledger app

This commit is contained in:
Ethan Frey
2017-09-12 11:40:30 +02:00
parent 265e261c63
commit 623bd803c2
3 changed files with 101 additions and 30 deletions

View File

@ -2,6 +2,7 @@ package nano
import (
"encoding/hex"
"os"
"testing"
"github.com/stretchr/testify/assert"
@ -71,3 +72,10 @@ func TestLedgerKeys(t *testing.T) {
assert.Equal(tc.valid, valid, "%d", i)
}
}
func TestRealLedger(t *testing.T) {
if os.Getenv("WITH_LEDGER") == "" {
t.Skip("Set WITH_LEDGER to run code on real ledger")
}
// let's try for real....
}