File tree 1 file changed +15
-15
lines changed
1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -405,21 +405,6 @@ impl Drop for SenderAccount {
405
405
}
406
406
}
407
407
408
- #[ cfg( test) ]
409
- impl SenderAccount {
410
- pub async fn _tests_get_allocations_active (
411
- & self ,
412
- ) -> MutexGuard < ' _ , HashMap < Address , Arc < SenderAllocation > > > {
413
- self . inner . allocations_active . lock ( ) . await
414
- }
415
-
416
- pub async fn _tests_get_allocations_ineligible (
417
- & self ,
418
- ) -> MutexGuard < ' _ , HashMap < Address , Arc < SenderAllocation > > > {
419
- self . inner . allocations_ineligible . lock ( ) . await
420
- }
421
- }
422
-
423
408
#[ cfg( test) ]
424
409
mod tests {
425
410
@@ -441,6 +426,21 @@ mod tests {
441
426
442
427
const DUMMY_URL : & str = "http://localhost:1234" ;
443
428
429
+ // To help with testing from other modules.
430
+ impl SenderAccount {
431
+ pub async fn _tests_get_allocations_active (
432
+ & self ,
433
+ ) -> MutexGuard < ' _ , HashMap < Address , Arc < SenderAllocation > > > {
434
+ self . inner . allocations_active . lock ( ) . await
435
+ }
436
+
437
+ pub async fn _tests_get_allocations_ineligible (
438
+ & self ,
439
+ ) -> MutexGuard < ' _ , HashMap < Address , Arc < SenderAllocation > > > {
440
+ self . inner . allocations_ineligible . lock ( ) . await
441
+ }
442
+ }
443
+
444
444
async fn create_sender_with_allocations (
445
445
pgpool : PgPool ,
446
446
sender_aggregator_endpoint : String ,
You can’t perform that action at this time.
0 commit comments