Skip to content

Commit

Permalink
contemporary
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 committed Mar 25, 2024
1 parent 0e409ab commit 1a72d84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 63 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/lint.yml

This file was deleted.

15 changes: 6 additions & 9 deletions block/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,12 @@ func TestProduceOnlyAfterSynced(t *testing.T) {
// Capture the error returned by manager.Start.
errChan := make(chan error, 1)
go func() {
errChan <- manager.Start(ctx, true) // Assuming manager.Start is modified to return an error.
}()

select {
case <-ctx.Done():
// Context completed.
case err := <-errChan:
errChan <- manager.Start(ctx, true)
err := <-errChan
// Check for error from manager.Start.
assert.NoError(t, err, "Manager start should not produce an error")
}
}()
<-ctx.Done()
assert.True(t, manager.syncTarget == batch.EndHeight)
//validate that we produced blocks
assert.Greater(t, manager.store.Height(), batch.EndHeight)
Expand Down Expand Up @@ -435,7 +431,8 @@ func TestCreateNextDABatchWithBytesLimit(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
// Produce blocks
for i := 0; i < tc.blocksToProduce; i++ {
_ = manager.produceBlock(ctx, true)
err := manager.produceBlock(ctx, true)
assert.NoError(err)
}

// Call createNextDABatch function
Expand Down

0 comments on commit 1a72d84

Please sign in to comment.