Skip to content

Commit

Permalink
Add verification for "deal-activated" actor event
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored and rjan90 committed Mar 22, 2024
1 parent 7af5f5e commit 1667c0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions itests/direct_data_onboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,15 @@ func TestOnboardMixedMarketDDO(t *testing.T) {
FromHeight: &epochZero,
})
require.NoError(t, err)
for _, key := range []string{"deal-published", "sector-precommitted", "sector-activated"} {
for _, key := range []string{"deal-published", "deal-activated", "sector-precommitted", "sector-activated"} {
var found bool
keyBytes := must.One(ipld.Encode(basicnode.NewString(key), dagcbor.Encode))
for _, event := range allEvents {
for _, e := range event.Entries {
if e.Key == "$type" && bytes.Equal(e.Value, keyBytes) {
found = true
if key == "deal-published" {
switch key {
case "deal-published", "deal-activated":
expectedEntries := []types.EventEntry{
{Flags: 0x03, Codec: uint64(multicodec.Cbor), Key: "$type", Value: keyBytes},
{Flags: 0x03, Codec: uint64(multicodec.Cbor), Key: "id", Value: must.One(ipld.Encode(basicnode.NewInt(2), dagcbor.Encode))},
Expand Down

0 comments on commit 1667c0e

Please sign in to comment.