@@ -63,7 +63,7 @@ func TestUploadHandlerAgainstEvilFileNames(t *testing.T) {
6363 signaturePubKey , err := utilities .ParseRsaPublicKey ([]byte (* signatureKey ))
6464 require .NoError (t , err )
6565 tools := tools .New (config .GetDataDir (), index , signaturePubKey )
66- hub := newHub (newSerialHub (), newSerialPortList (tools ), tools , & systray.Systray {})
66+ hub := newHub (newSerialPortList (tools ), tools , & systray.Systray {})
6767 pubkey := utilities .MustParseRsaPublicKey ([]byte (globals .ArduinoSignaturePubKey ))
6868
6969 r .POST ("/" , uploadHandler (hub , pubkey , tools ))
@@ -107,7 +107,7 @@ func TestUploadHandlerAgainstBase64WithoutPaddingMustFail(t *testing.T) {
107107 signaturePubKey , err := utilities .ParseRsaPublicKey ([]byte (* signatureKey ))
108108 require .NoError (t , err )
109109 tools := tools .New (config .GetDataDir (), index , signaturePubKey )
110- hub := newHub (newSerialHub (), newSerialPortList (tools ), tools , & systray.Systray {})
110+ hub := newHub (newSerialPortList (tools ), tools , & systray.Systray {})
111111 pubkey := utilities .MustParseRsaPublicKey ([]byte (globals .ArduinoSignaturePubKey ))
112112
113113 r .POST ("/" , uploadHandler (hub , pubkey , tools ))
0 commit comments