@@ -1483,7 +1483,6 @@ func TestPutPatronRequestsIdMissingId(t *testing.T) {
14831483
14841484func TestPutPatronRequestsIdIdMismatch (t * testing.T ) {
14851485 handler := NewPrApiHandler (new (PrRepoError ), mockEventBus , mockEventRepo , tenant .NewResolver (), nil , 10 )
1486- handler .SetIllRepo (new (illRepoNoTx ))
14871486 otherId := "other-id"
14881487 body := proapi.CreatePatronRequest {Id : & otherId , RequesterSymbol : & symbol , IllRequest : validIllRequest ()}
14891488 jsonBytes , _ := json .Marshal (body )
@@ -1515,7 +1514,6 @@ func TestPutPatronRequestsIdIllRepoError(t *testing.T) {
15151514
15161515func TestPutPatronRequestsIdNotFound (t * testing.T ) {
15171516 handler := NewPrApiHandler (new (PrRepoError ), mockEventBus , mockEventRepo , tenant .NewResolver (), nil , 10 )
1518- handler .SetIllRepo (new (illRepoNoTx ))
15191517 req , _ := http .NewRequest ("PUT" , "/" , putBody (t , "2" , validIllRequest ()))
15201518 rr := httptest .NewRecorder ()
15211519 handler .PutPatronRequestsId (rr , req , "2" , proapi.PutPatronRequestsIdParams {})
@@ -1524,7 +1522,6 @@ func TestPutPatronRequestsIdNotFound(t *testing.T) {
15241522
15251523func TestPutPatronRequestsIdPrRepoError (t * testing.T ) {
15261524 handler := NewPrApiHandler (new (PrRepoError ), mockEventBus , mockEventRepo , tenant .NewResolver (), nil , 10 )
1527- handler .SetIllRepo (new (illRepoNoTx ))
15281525 req , _ := http .NewRequest ("PUT" , "/" , putBody (t , "1" , validIllRequest ()))
15291526 rr := httptest .NewRecorder ()
15301527 handler .PutPatronRequestsId (rr , req , "1" , proapi.PutPatronRequestsIdParams {})
@@ -1537,7 +1534,6 @@ func TestPutPatronRequestsIdWrongOwner(t *testing.T) {
15371534 // without erroring; the mock returns no branch symbols for "ISIL:OTHER", producing 404.
15381535 tenantResolver := tenant .NewResolver ().WithIllRepo (new (mocks.MockIllRepositorySuccess ))
15391536 handler := NewPrApiHandler (new (PrRepoWrongOwner ), mockEventBus , mockEventRepo , tenantResolver , nil , 10 )
1540- handler .SetIllRepo (new (illRepoNoTx ))
15411537 req , _ := http .NewRequest ("PUT" , "/" , putBody (t , "3" , validIllRequest ()))
15421538 rr := httptest .NewRecorder ()
15431539 handler .PutPatronRequestsId (rr , req , "3" , proapi.PutPatronRequestsIdParams {})
@@ -1556,7 +1552,6 @@ func TestPutPatronRequestsIdUpdateError(t *testing.T) {
15561552
15571553func TestPutPatronRequestsIdNotBorrowingSide (t * testing.T ) {
15581554 handler := NewPrApiHandler (new (PrRepoLendingSide ), mockEventBus , mockEventRepo , tenant .NewResolver (), nil , 10 )
1559- handler .SetIllRepo (new (illRepoNoTx ))
15601555 req , _ := http .NewRequest ("PUT" , "/" , putBody (t , "3" , validIllRequest ()))
15611556 rr := httptest .NewRecorder ()
15621557 handler .PutPatronRequestsId (rr , req , "3" , proapi.PutPatronRequestsIdParams {})
0 commit comments