@@ -139,7 +139,7 @@ func TestSyncLoop_ProcessSingleBlock_HeaderFirst(t *testing.T) {
139139 wg .Add (1 )
140140 go func () {
141141 defer wg .Done ()
142- m .SyncLoop (ctx )
142+ m .SyncLoop (ctx , make ( chan <- error ) )
143143 }()
144144
145145 t .Logf ("Sending header event for height %d" , newHeight )
@@ -226,7 +226,7 @@ func TestSyncLoop_ProcessSingleBlock_DataFirst(t *testing.T) {
226226 wg .Add (1 )
227227 go func () {
228228 defer wg .Done ()
229- m .SyncLoop (ctx )
229+ m .SyncLoop (ctx , make ( chan <- error ) )
230230 }()
231231
232232 t .Logf ("Sending data event for height %d" , newHeight )
@@ -351,7 +351,7 @@ func TestSyncLoop_ProcessMultipleBlocks_Sequentially(t *testing.T) {
351351 wg .Add (1 )
352352 go func () {
353353 defer wg .Done ()
354- m .SyncLoop (ctx )
354+ m .SyncLoop (ctx , make ( chan <- error ) )
355355 t .Log ("SyncLoop exited." )
356356 }()
357357
@@ -498,7 +498,7 @@ func TestSyncLoop_ProcessBlocks_OutOfOrderArrival(t *testing.T) {
498498 wg .Add (1 )
499499 go func () {
500500 defer wg .Done ()
501- m .SyncLoop (ctx )
501+ m .SyncLoop (ctx , make ( chan <- error ) )
502502 t .Log ("SyncLoop exited." )
503503 }()
504504
@@ -605,7 +605,7 @@ func TestSyncLoop_IgnoreDuplicateEvents(t *testing.T) {
605605 wg .Add (1 )
606606 go func () {
607607 defer wg .Done ()
608- m .SyncLoop (ctx )
608+ m .SyncLoop (ctx , make ( chan <- error ) )
609609 t .Log ("SyncLoop exited." )
610610 }()
611611
@@ -703,7 +703,7 @@ func TestSyncLoop_PanicOnApplyError(t *testing.T) {
703703 t .Error ("SyncLoop did not panic as expected" )
704704 }
705705 }()
706- m .SyncLoop (ctx )
706+ m .SyncLoop (ctx , make ( chan <- error ) )
707707 t .Log ("SyncLoop exited." )
708708 }()
709709
@@ -821,7 +821,7 @@ func TestDataCommitmentToHeight_HeaderThenData(t *testing.T) {
821821 wg .Add (1 )
822822 go func () {
823823 defer wg .Done ()
824- m .SyncLoop (ctx )
824+ m .SyncLoop (ctx , make ( chan <- error ) )
825825 }()
826826
827827 headerInCh <- NewHeaderEvent {Header : header , DAHeight : initialState .DAHeight }
@@ -868,7 +868,7 @@ func TestDataCommitmentToHeight_HeaderWithExistingData(t *testing.T) {
868868 wg .Add (1 )
869869 go func () {
870870 defer wg .Done ()
871- m .SyncLoop (ctx )
871+ m .SyncLoop (ctx , make ( chan <- error ) )
872872 }()
873873
874874 headerInCh <- NewHeaderEvent {Header : header , DAHeight : initialState .DAHeight }
@@ -911,7 +911,7 @@ func TestDataCommitmentToHeight_DataBeforeHeader(t *testing.T) {
911911 wg .Add (1 )
912912 go func () {
913913 defer wg .Done ()
914- m .SyncLoop (ctx )
914+ m .SyncLoop (ctx , make ( chan <- error ) )
915915 }()
916916
917917 data .Metadata = nil
@@ -961,7 +961,7 @@ func TestDataCommitmentToHeight_HeaderAlreadySynced(t *testing.T) {
961961 wg .Add (1 )
962962 go func () {
963963 defer wg .Done ()
964- m .SyncLoop (ctx )
964+ m .SyncLoop (ctx , make ( chan <- error ) )
965965 }()
966966
967967 headerInCh <- NewHeaderEvent {Header : header , DAHeight : initialState .DAHeight }
@@ -1007,7 +1007,7 @@ func TestDataCommitmentToHeight_EmptyDataHash(t *testing.T) {
10071007 wg .Add (1 )
10081008 go func () {
10091009 defer wg .Done ()
1010- m .SyncLoop (ctx )
1010+ m .SyncLoop (ctx , make ( chan <- error ) )
10111011 }()
10121012
10131013 headerInCh <- NewHeaderEvent {Header : header , DAHeight : initialState .DAHeight }
@@ -1043,7 +1043,7 @@ func TestDataCommitmentToHeight_DataAlreadySeen(t *testing.T) {
10431043 wg .Add (1 )
10441044 go func () {
10451045 defer wg .Done ()
1046- m .SyncLoop (ctx )
1046+ m .SyncLoop (ctx , make ( chan <- error ) )
10471047 }()
10481048
10491049 dataInCh <- NewDataEvent {Data : data , DAHeight : initialState .DAHeight }
0 commit comments