kaspad/testing/integration/notifications_test.go
2023-08-23 15:18:10 +09:00

15 lines
387 B
Go

package integration
import (
"testing"
"github.com/c4ei/YunSeokYeol/app/appmessage"
)
func setOnBlockAddedHandler(t *testing.T, harness *appHarness, handler func(notification *appmessage.BlockAddedNotificationMessage)) {
err := harness.rpcClient.RegisterForBlockAddedNotifications(handler)
if err != nil {
t.Fatalf("Error from RegisterForBlockAddedNotifications: %s", err)
}
}