@@ -363,7 +363,7 @@ func TestHandlerV1_SyntacticallyValidateAtx(t *testing.T) {
363
363
require .Equal (t , mwire .InvalidPostIndex , mp .Proof .Type )
364
364
365
365
// check if no transaction is currently open in the DB, since otherwise it could cause a deadlock
366
- require .NoError (t , atxHdlr .cdb .WithTxImmediate (ctx , func (tx sql.Transaction ) error {
366
+ require .NoError (t , atxHdlr .cdb .WithTxImmediate (func (tx sql.Transaction ) error {
367
367
mal , err := identities .IsMalicious (tx , sig .NodeID ())
368
368
require .NoError (t , err )
369
369
require .False (t , mal )
@@ -728,7 +728,7 @@ func TestHandlerV1_StoreAtx(t *testing.T) {
728
728
require .Equal (t , mwire .MultipleATXs , mp .Proof .Type )
729
729
730
730
// check if no transaction is currently open in the DB, since otherwise it could cause a deadlock
731
- require .NoError (t , atxHdlr .cdb .WithTxImmediate (ctx , func (tx sql.Transaction ) error {
731
+ require .NoError (t , atxHdlr .cdb .WithTxImmediate (func (tx sql.Transaction ) error {
732
732
mal , err := identities .IsMalicious (tx , sig .NodeID ())
733
733
require .NoError (t , err )
734
734
require .False (t , mal )
@@ -824,7 +824,7 @@ func TestHandlerV1_StoreAtx(t *testing.T) {
824
824
require .Equal (t , mwire .InvalidPrevATX , mp .Proof .Type )
825
825
826
826
// check if no transaction is currently open in the DB, since otherwise it could cause a deadlock
827
- require .NoError (t , atxHdlr .cdb .WithTxImmediate (ctx , func (tx sql.Transaction ) error {
827
+ require .NoError (t , atxHdlr .cdb .WithTxImmediate (func (tx sql.Transaction ) error {
828
828
mal , err := identities .IsMalicious (tx , sig .NodeID ())
829
829
require .NoError (t , err )
830
830
require .False (t , mal )
@@ -898,7 +898,7 @@ func TestHandlerV1_StoreAtx(t *testing.T) {
898
898
atxHdlr .mMalPublish .EXPECT ().Publish (t .Context (), sig .NodeID (), gomock .Any ()).DoAndReturn (
899
899
func (ctx context.Context , _ types.NodeID , proof wire.Proof ) error {
900
900
// check if no transaction is currently open in the DB, since otherwise it could cause a deadlock
901
- require .NoError (t , atxHdlr .cdb .WithTxImmediate (ctx , func (tx sql.Transaction ) error {
901
+ require .NoError (t , atxHdlr .cdb .WithTxImmediate (func (tx sql.Transaction ) error {
902
902
mal , err := identities .IsMalicious (tx , sig .NodeID ())
903
903
require .NoError (t , err )
904
904
require .False (t , mal )
0 commit comments