Skip to content

Commit

Permalink
Fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 28, 2023
1 parent cec0cde commit 1142f63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions internal/models/ticket/ticket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ticket
import (
"testing"

"github.com/baking-bad/bcdhub/internal/models/account"
"github.com/stretchr/testify/require"
)

Expand All @@ -15,19 +16,25 @@ func TestTicket_Hash(t *testing.T) {
{
name: "test 1",
t: Ticket{
TicketerID: 1,
TicketerID: 1,
Ticketer: account.Account{
Address: "address1",
},
ContentType: []byte(`{}`),
Content: []byte(`{}`),
},
want: "1e938ee9817c472dab8b9a6601d7266592ad45186d24ddd1a92bba08854f71b2",
want: "49e3556aeeb72ede783c3a975bb10d8d19e14f0ab6b9d481de9f5ebeb0861a54",
}, {
name: "test 2",
t: Ticket{
TicketerID: 2,
TicketerID: 2,
Ticketer: account.Account{
Address: "address2",
},
ContentType: []byte(`{}`),
Content: []byte(`{}`),
},
want: "6238d736dd79c7274ffd96c912cd18df394a773400960859f0a3320610811a1e",
want: "bcb6d6dc0d03d874520f0948f127a421eafe27a97950e39a118a03179dfce460",
},
}
for _, tt := range tests {
Expand Down
2 changes: 1 addition & 1 deletion internal/parsers/operations/operation_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,7 @@ func TestGroup_Parse(t *testing.T) {
},
},
Tickets: map[string]*ticket.Ticket{
"c4a3e1aa42bafd749abb7b7c6732a344b4794cf626c3a9d260e1fadef5e2438e": {
"44f09c8c9d1135c11c71f31ab4126d464cad6067010e1d440e4749331450d860": {
Level: 1616868,
Ticketer: account.Account{
Address: "KT1Nux298EEiVoTzF7jQS3iBV3K4ShN8ucSP",
Expand Down

0 comments on commit 1142f63

Please sign in to comment.