Skip to content

Commit

Permalink
check for notification
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Aug 28, 2024
1 parent cad3014 commit 0114d42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e/e2e_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2463,6 +2463,15 @@ func TestGetFinalitiesByL2KeystoneBSS(t *testing.T) {
t.Fatal(err)
}

// there is a chance we get notifications from the L2KeystonesInsert
// call above, if they haven't been broadcast yet. ignore those.
if v.Header.Command == bfgapi.CmdL2KeystonesNotification {
err = wsjson.Read(ctx, c, &v)
if err != nil {
t.Fatal(err)
}
}

if v.Header.Command != bssapi.CmdBTCFinalityByKeystonesResponse {
t.Fatalf("received unexpected command: %s", v.Header.Command)
}
Expand Down

0 comments on commit 0114d42

Please sign in to comment.