From 1667c0e3ed26005697e0c96e14930b37124dd9c1 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 5 Mar 2024 19:28:37 +1100 Subject: [PATCH] Add verification for "deal-activated" actor event --- itests/direct_data_onboard_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/itests/direct_data_onboard_test.go b/itests/direct_data_onboard_test.go index 52dd18880..703419ad1 100644 --- a/itests/direct_data_onboard_test.go +++ b/itests/direct_data_onboard_test.go @@ -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))},