@@ -53,6 +53,8 @@ func TestAsyncBlockRetriever_SubscriptionDrivenCaching(t *testing.T) {
5353 client := & mocks.MockClient {}
5454 fiNs := datypes .NamespaceFromString ("test-fi-ns" ).Bytes ()
5555
56+ client .On ("SupportsSubscribe" ).Return (true )
57+
5658 // Create a subscription channel that delivers one event then blocks.
5759 subCh := make (chan datypes.SubscriptionEvent , 1 )
5860 subCh <- datypes.SubscriptionEvent {
@@ -104,6 +106,8 @@ func TestAsyncBlockRetriever_CatchupFillsGaps(t *testing.T) {
104106 client := & mocks.MockClient {}
105107 fiNs := datypes .NamespaceFromString ("test-fi-ns" ).Bytes ()
106108
109+ client .On ("SupportsSubscribe" ).Return (true )
110+
107111 // Subscription delivers height 105 (no blobs — just a signal).
108112 subCh := make (chan datypes.SubscriptionEvent , 1 )
109113 subCh <- datypes.SubscriptionEvent {Height : 105 }
@@ -153,6 +157,8 @@ func TestAsyncBlockRetriever_HeightFromFuture(t *testing.T) {
153157 client := & mocks.MockClient {}
154158 fiNs := datypes .NamespaceFromString ("test-fi-ns" ).Bytes ()
155159
160+ client .On ("SupportsSubscribe" ).Return (true )
161+
156162 // Subscription delivers height 100 with no blobs.
157163 subCh := make (chan datypes.SubscriptionEvent )
158164 client .On ("Subscribe" , mock .Anything , fiNs , mock .Anything ).Return ((<- chan datypes.SubscriptionEvent )(subCh ), nil ).Once ()
@@ -187,6 +193,8 @@ func TestAsyncBlockRetriever_StopGracefully(t *testing.T) {
187193 client := & mocks.MockClient {}
188194 fiNs := datypes .NamespaceFromString ("test-fi-ns" ).Bytes ()
189195
196+ client .On ("SupportsSubscribe" ).Return (true )
197+
190198 blockCh := make (chan datypes.SubscriptionEvent )
191199 client .On ("Subscribe" , mock .Anything , fiNs , mock .Anything ).Return ((<- chan datypes.SubscriptionEvent )(blockCh ), nil ).Maybe ()
192200 client .On ("Retrieve" , mock .Anything , mock .Anything , fiNs ).Return (datypes.ResultRetrieve {
@@ -211,6 +219,8 @@ func TestAsyncBlockRetriever_ReconnectOnSubscriptionError(t *testing.T) {
211219 client := & mocks.MockClient {}
212220 fiNs := datypes .NamespaceFromString ("test-fi-ns" ).Bytes ()
213221
222+ client .On ("SupportsSubscribe" ).Return (true )
223+
214224 // First subscription closes immediately (simulating error).
215225 closedCh := make (chan datypes.SubscriptionEvent )
216226 close (closedCh )
0 commit comments