@@ -73,7 +73,7 @@ async fn test_bmc((router, state): (axum::Router, BmcState)) -> TestBmcHandle {
7373
7474pub async fn wiwynn_gb200_bmc ( ) -> TestBmcHandle {
7575 test_bmc ( machine_router (
76- MachineInfo :: Host ( HostMachineInfo :: new (
76+ & MachineInfo :: Host ( HostMachineInfo :: new (
7777 HostHardwareType :: WiwynnGB200Nvl ,
7878 vec ! [
7979 DpuMachineInfo :: new( HostHardwareType :: WiwynnGB200Nvl , DpuSettings :: default ( ) ) ,
@@ -89,7 +89,7 @@ pub async fn wiwynn_gb200_bmc() -> TestBmcHandle {
8989
9090pub async fn lenovo_gb300_bmc ( ) -> TestBmcHandle {
9191 test_bmc ( machine_router (
92- MachineInfo :: Host ( HostMachineInfo :: new (
92+ & MachineInfo :: Host ( HostMachineInfo :: new (
9393 HostHardwareType :: LenovoGB300Nvl ,
9494 vec ! [ DpuMachineInfo :: new(
9595 HostHardwareType :: LenovoGB300Nvl ,
@@ -105,7 +105,7 @@ pub async fn lenovo_gb300_bmc() -> TestBmcHandle {
105105
106106pub async fn dgx_gb300_bmc ( ) -> TestBmcHandle {
107107 test_bmc ( machine_router (
108- MachineInfo :: Host ( HostMachineInfo :: new (
108+ & MachineInfo :: Host ( HostMachineInfo :: new (
109109 HostHardwareType :: NvidiaDgxGb300 ,
110110 vec ! [ DpuMachineInfo :: new(
111111 HostHardwareType :: NvidiaDgxGb300 ,
@@ -121,7 +121,7 @@ pub async fn dgx_gb300_bmc() -> TestBmcHandle {
121121
122122pub async fn supermicro_gb300_bmc ( ) -> TestBmcHandle {
123123 test_bmc ( machine_router (
124- MachineInfo :: Host ( HostMachineInfo :: new (
124+ & MachineInfo :: Host ( HostMachineInfo :: new (
125125 HostHardwareType :: SupermicroGb300Nvl ,
126126 vec ! [ DpuMachineInfo :: new(
127127 HostHardwareType :: SupermicroGb300Nvl ,
@@ -137,7 +137,7 @@ pub async fn supermicro_gb300_bmc() -> TestBmcHandle {
137137
138138pub async fn generic_supermicro_bmc ( ) -> TestBmcHandle {
139139 test_bmc ( machine_router (
140- MachineInfo :: Host ( HostMachineInfo :: new (
140+ & MachineInfo :: Host ( HostMachineInfo :: new (
141141 HostHardwareType :: GenericSupermicro ,
142142 vec ! [ ] ,
143143 ) ) ,
@@ -150,7 +150,7 @@ pub async fn generic_supermicro_bmc() -> TestBmcHandle {
150150
151151pub async fn liteon_powershelf_bmc ( ) -> TestBmcHandle {
152152 test_bmc ( machine_router (
153- MachineInfo :: Host ( HostMachineInfo :: new (
153+ & MachineInfo :: Host ( HostMachineInfo :: new (
154154 HostHardwareType :: LiteOnPowerShelf ,
155155 vec ! [ ] ,
156156 ) ) ,
@@ -163,7 +163,7 @@ pub async fn liteon_powershelf_bmc() -> TestBmcHandle {
163163
164164pub async fn nvidia_switch_nd5200_ld_bmc ( ) -> TestBmcHandle {
165165 test_bmc ( machine_router (
166- MachineInfo :: Host ( HostMachineInfo :: new (
166+ & MachineInfo :: Host ( HostMachineInfo :: new (
167167 HostHardwareType :: NvidiaSwitchNd5200Ld ,
168168 vec ! [ ] ,
169169 ) ) ,
@@ -176,7 +176,7 @@ pub async fn nvidia_switch_nd5200_ld_bmc() -> TestBmcHandle {
176176
177177pub async fn dell_poweredge_r750_bmc ( ) -> TestBmcHandle {
178178 test_bmc ( machine_router (
179- MachineInfo :: Host ( HostMachineInfo :: new (
179+ & MachineInfo :: Host ( HostMachineInfo :: new (
180180 HostHardwareType :: DellPowerEdgeR750 ,
181181 vec ! [ ] ,
182182 ) ) ,
@@ -189,7 +189,7 @@ pub async fn dell_poweredge_r750_bmc() -> TestBmcHandle {
189189
190190pub async fn dell_poweredge_r750_bluefield3_bmc ( settings : DpuSettings ) -> TestBmcHandle {
191191 test_bmc ( machine_router (
192- MachineInfo :: Dpu ( DpuMachineInfo :: new (
192+ & MachineInfo :: Dpu ( DpuMachineInfo :: new (
193193 HostHardwareType :: DellPowerEdgeR750 ,
194194 settings,
195195 ) ) ,
@@ -202,7 +202,7 @@ pub async fn dell_poweredge_r750_bluefield3_bmc(settings: DpuSettings) -> TestBm
202202
203203pub async fn generic_ami_bmc ( ) -> TestBmcHandle {
204204 test_bmc ( machine_router (
205- MachineInfo :: Host ( HostMachineInfo :: new ( HostHardwareType :: GenericAmi , vec ! [ ] ) ) ,
205+ & MachineInfo :: Host ( HostMachineInfo :: new ( HostHardwareType :: GenericAmi , vec ! [ ] ) ) ,
206206 Arc :: new ( NoopCallbacks ) ,
207207 "test-host-id" . to_string ( ) ,
208208 false ,
@@ -224,7 +224,7 @@ mod test {
224224 async fn transport_supports_expand_query_through_mock_expander ( ) {
225225 let client = AxumRouterHttpClient :: new (
226226 machine_router (
227- MachineInfo :: Host ( HostMachineInfo :: new (
227+ & MachineInfo :: Host ( HostMachineInfo :: new (
228228 HostHardwareType :: DellPowerEdgeR750 ,
229229 vec ! [ ] ,
230230 ) ) ,
0 commit comments