Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed Oct 3, 2023
1 parent ae959a8 commit fbb775c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/storage/sqlstorage/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ func (s *Store) GetLastLog(ctx context.Context) (*core.Log, error) {
if s.singleInstance {
s.lastLog = &l
}

Check warning on line 116 in pkg/storage/sqlstorage/logs.go

View check run for this annotation

Codecov / codecov/patch

pkg/storage/sqlstorage/logs.go#L115-L116

Added lines #L115 - L116 were not covered by tests

return &l, nil
}
return s.lastLog, nil
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/storage/sqlstorage/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ func (s *Store) GetLastTransaction(ctx context.Context) (*core.ExpandedTransacti
if s.singleInstance {
s.lastTx = &tx
}

Check warning on line 332 in pkg/storage/sqlstorage/transactions.go

View check run for this annotation

Codecov / codecov/patch

pkg/storage/sqlstorage/transactions.go#L331-L332

Added lines #L331 - L332 were not covered by tests

return &tx, nil
}

return s.lastTx, nil
Expand Down

0 comments on commit fbb775c

Please sign in to comment.