Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion node/node_identities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func setupAppWithKeys(tb testing.TB, data ...[]byte) (*App, *observer.ObservedLo
)))
cfg := getTestConfig(tb)
app := New(WithLog(log.NewFromLog(logger)), WithConfig(&cfg))
app.Config.DataDirParent = tb.TempDir()
if len(data) == 0 {
return app, observedLogs
}
Expand Down
4 changes: 4 additions & 0 deletions sql/layers/layers.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@
stmt.ColumnBytes(4, layer.StateHash[:])
stmt.ColumnBytes(5, layer.AggregatedHash[:])

if layer.AppliedBlock.IsEmpty() {
return true
}

Check warning on line 390 in sql/layers/layers.go

View check run for this annotation

Codecov / codecov/patch

sql/layers/layers.go#L389-L390

Added lines #L389 - L390 were not covered by tests

inner := types.InnerBlock{}
_, err := codec.DecodeFrom(stmt.ColumnReader(7), &inner)
if err != nil {
Expand Down
9 changes: 8 additions & 1 deletion systest/tests/checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ func TestCheckpoint(t *testing.T) {
ctx, cancel := context.WithDeadline(tctx, deadline)
defer cancel()
require.NoError(t, sendTransactions(ctx, tctx.Log.Desugar(), cl, first, stop, receiver, 1, 100))
require.NoError(t, waitLayer(tctx, cl.Client(0), snapshotLayer))

layerTime := cl.Genesis().Add(time.Duration(snapshotLayer) * layerDuration)
tctx.Log.Debugw("waiting for layer", "layer", snapshotLayer, "layer time", layerTime)
select {
case <-tctx.Done():
require.FailNow(t, "test context is done")
case <-time.After(time.Until(layerTime)):
}

tctx.Log.Debugw("getting account balances")
before, err := getBalance(tctx, cl, snapshotLayer)
Expand Down
Loading
Loading