Skip to content

Commit

Permalink
update failing test to new expected result now that the square size i…
Browse files Browse the repository at this point in the history
…s 128 instead of 64
  • Loading branch information
evan-forbes committed Feb 19, 2021
1 parent 96ffd13 commit b8d4776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/lazyledgerapp/types/payformessage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ func TestGetCommitmentSignBytes(t *testing.T) {
TipRateMax: 1000,
},
},
expected: []byte(`{"fee":{"base_rate_max":"10000","tip_rate_max":"1000"},"message_namespace_id":"AQIDBAECAwQ=","message_share_commitment":"kLkMnfL0wruFOdgRJ4KnyjJBLJWlKxbEyks8SI0cfZs=","message_size":"4","nonce":"1"}`),
expected: []byte(`{"fee":{"base_rate_max":"10000","tip_rate_max":"1000"},"message_namespace_id":"AQIDBAECAwQ=","message_share_commitment":"byozRVIrw5NF/rU1PPyq6BAo3g2ny3uLTiOFedtgSwo=","message_size":"4","nonce":"1"}`),
},
}
for _, tt := range tests {
res, err := tt.msg.GetCommitmentSignBytes(64)
res, err := tt.msg.GetCommitmentSignBytes(SquareSize)
assert.NoError(t, err)
assert.Equal(t, tt.expected, res)
}
Expand Down

0 comments on commit b8d4776

Please sign in to comment.