@@ -42,10 +42,10 @@ func TestEntryBundles(t *testing.T) {
4242 }
4343 }()
4444
45- if _ , err := populateEntries (ctx , tl , logSize1 , "first" ); err != nil {
45+ if _ , err := populateEntries (t , tl , logSize1 , "first" ); err != nil {
4646 t .Fatalf ("populateEntries(first): %v" , err )
4747 }
48- if _ , err := populateEntries (ctx , tl , logSize2 - logSize1 , "second" ); err != nil {
48+ if _ , err := populateEntries (t , tl , logSize2 - logSize1 , "second" ); err != nil {
4949 t .Fatalf ("populateEntries(second): %v" , err )
5050 }
5151
@@ -95,7 +95,7 @@ func TestEntries(t *testing.T) {
9595 }()
9696
9797 // Put some entries into a log.
98- es , err := populateEntries (ctx , tl , logSize , "first" )
98+ es , err := populateEntries (t , tl , logSize , "first" )
9999 if err != nil {
100100 t .Fatalf ("populateEntries(): %v" , err )
101101 }
@@ -140,18 +140,21 @@ func TestEntries(t *testing.T) {
140140 }
141141}
142142
143- func populateEntries (ctx context.Context , tl * testonly.TestLog , N uint64 , ep string ) ([][]byte , error ) {
143+ func populateEntries (t * testing.T , tl * testonly.TestLog , N uint64 , ep string ) ([][]byte , error ) {
144+ t .Helper ()
145+
144146 es := make ([][]byte , 0 , N )
145147 fs := make ([]tessera.IndexFuture , 0 , N )
146148 for i := range N {
147149 e := fmt .Appendf (nil , "%s-%d" , ep , i )
148150 es = append (es , e )
149- fs = append (fs , tl .Appender .Add (ctx , tessera .NewEntry (e )))
151+ fs = append (fs , tl .Appender .Add (t . Context () , tessera .NewEntry (e )))
150152 }
153+ t .Logf ("Added %d entries" , N )
151154
152- a := tessera .NewPublicationAwaiter (ctx , tl .LogReader .ReadCheckpoint , time .Second )
155+ a := tessera .NewPublicationAwaiter (t . Context () , tl .LogReader .ReadCheckpoint , time .Second )
153156 for _ , f := range fs {
154- if _ , _ , err := a .Await (ctx , f ); err != nil {
157+ if _ , _ , err := a .Await (t . Context () , f ); err != nil {
155158 return nil , err
156159 }
157160 }
0 commit comments