lnwallet: move stateHintTests global var into TestCommitTxStateHint

This commit is contained in:
Olaoluwa Osuntokun 2017-07-29 18:24:47 -07:00
parent 4e4375513d
commit 1a9ada4897
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

View File

@ -573,13 +573,18 @@ func TestHTLCReceiverSpendValidation(t *testing.T) {
}
}
var stateHintTests = []struct {
}
func TestCommitTxStateHint(t *testing.T) {
t.Parallel()
stateHintTests := []struct {
name string
from uint64
to uint64
inputs int
shouldFail bool
}{
}{
{
name: "states 0 to 1000",
from: 0,
@ -606,10 +611,7 @@ var stateHintTests = []struct {
inputs: 2,
shouldFail: true,
},
}
func TestCommitTxStateHint(t *testing.T) {
t.Parallel()
}
var obsfucator [StateHintSize]byte
copy(obsfucator[:], testHdSeed[:StateHintSize])