@@ -1042,7 +1042,7 @@ pub mod tests {
10421042 . unwrap ( ) ;
10431043
10441044 let handle = Mutex :: new ( handle) ;
1045-
1045+ let aggregator_endpoint = "http://" . to_owned ( ) + & aggregator_endpoint . to_string ( ) ;
10461046 // Start mock GraphQL server
10471047 let mock_server = MockServer :: start ( ) . await ;
10481048
@@ -1058,7 +1058,7 @@ pub mod tests {
10581058 )
10591059 . await ;
10601060
1061- ( handle, aggregator_endpoint. to_string ( ) , mock_server)
1061+ ( handle, aggregator_endpoint, mock_server)
10621062 }
10631063 #[ sqlx:: test( migrations = "../migrations" ) ]
10641064 async fn should_update_unaggregated_fees_on_start ( pgpool : PgPool ) {
@@ -1076,7 +1076,7 @@ pub mod tests {
10761076 // Create a sender_allocation.
10771077 let sender_allocation = create_sender_allocation (
10781078 pgpool. clone ( ) ,
1079- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1079+ aggregator_endpoint,
10801080 & mock_server. uri ( ) ,
10811081 Some ( sender_account) ,
10821082 )
@@ -1124,7 +1124,7 @@ pub mod tests {
11241124 // Create a sender_allocation.
11251125 let sender_allocation = create_sender_allocation (
11261126 pgpool. clone ( ) ,
1127- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1127+ aggregator_endpoint,
11281128 & mock_server. uri ( ) ,
11291129 Some ( sender_account) ,
11301130 )
@@ -1173,7 +1173,7 @@ pub mod tests {
11731173 // Create a sender_allocation.
11741174 let sender_allocation = create_sender_allocation (
11751175 pgpool. clone ( ) ,
1176- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1176+ aggregator_endpoint,
11771177 & mock_server. uri ( ) ,
11781178 Some ( sender_account) ,
11791179 )
@@ -1257,7 +1257,7 @@ pub mod tests {
12571257 // Create a sender_allocation.
12581258 let sender_allocation = create_sender_allocation (
12591259 pgpool. clone ( ) ,
1260- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1260+ aggregator_endpoint,
12611261 & mock_server. uri ( ) ,
12621262 Some ( sender_account) ,
12631263 )
@@ -1322,7 +1322,7 @@ pub mod tests {
13221322 // create allocation
13231323 let sender_allocation = create_sender_allocation (
13241324 pgpool. clone ( ) ,
1325- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1325+ aggregator_endpoint,
13261326 & mock_server. uri ( ) ,
13271327 Some ( sender_account) ,
13281328 )
@@ -1445,7 +1445,7 @@ pub mod tests {
14451445 // create allocation
14461446 let args = create_sender_allocation_args (
14471447 pgpool. clone ( ) ,
1448- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1448+ aggregator_endpoint,
14491449 & mock_server. uri ( ) ,
14501450 None ,
14511451 )
@@ -1476,7 +1476,7 @@ pub mod tests {
14761476 // create allocation
14771477 let args = create_sender_allocation_args (
14781478 pgpool. clone ( ) ,
1479- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1479+ aggregator_endpoint,
14801480 & mock_server. uri ( ) ,
14811481 None ,
14821482 )
@@ -1514,7 +1514,7 @@ pub mod tests {
15141514 // create allocation
15151515 let args = create_sender_allocation_args (
15161516 pgpool. clone ( ) ,
1517- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1517+ aggregator_endpoint,
15181518 & mock_server. uri ( ) ,
15191519 None ,
15201520 )
@@ -1550,7 +1550,7 @@ pub mod tests {
15501550 // create allocation
15511551 let args = create_sender_allocation_args (
15521552 pgpool. clone ( ) ,
1553- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1553+ aggregator_endpoint,
15541554 & mock_server. uri ( ) ,
15551555 None ,
15561556 )
@@ -1590,7 +1590,7 @@ pub mod tests {
15901590 // create allocation
15911591 let args = create_sender_allocation_args (
15921592 pgpool. clone ( ) ,
1593- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1593+ aggregator_endpoint,
15941594 & mock_server. uri ( ) ,
15951595 None ,
15961596 )
@@ -1637,7 +1637,7 @@ pub mod tests {
16371637 // create allocation
16381638 let args = create_sender_allocation_args (
16391639 pgpool. clone ( ) ,
1640- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1640+ aggregator_endpoint,
16411641 & mock_server. uri ( ) ,
16421642 None ,
16431643 )
@@ -1673,7 +1673,7 @@ pub mod tests {
16731673 // create allocation
16741674 let sender_allocation = create_sender_allocation (
16751675 pgpool. clone ( ) ,
1676- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1676+ aggregator_endpoint,
16771677 & mock_server. uri ( ) ,
16781678 Some ( sender_account) ,
16791679 )
@@ -1752,7 +1752,7 @@ pub mod tests {
17521752 // create allocation
17531753 let sender_allocation = create_sender_allocation (
17541754 pgpool. clone ( ) ,
1755- "http://" . to_owned ( ) + & aggregator_endpoint. to_string ( ) ,
1755+ aggregator_endpoint,
17561756 & mock_server. uri ( ) ,
17571757 Some ( sender_account) ,
17581758 )
0 commit comments