@@ -6,6 +6,7 @@ extern crate tempdir;
66use rustup_dist:: component:: Components ;
77use rustup_dist:: component:: { DirectoryPackage , Package } ;
88use rustup_dist:: component:: Transaction ;
9+ use rustup_dist:: dist:: DEFAULT_DIST_SERVER ;
910use rustup_dist:: temp;
1011use rustup_dist:: ErrorKind ;
1112use rustup_dist:: Notification ;
@@ -109,7 +110,7 @@ fn basic_install() {
109110 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
110111
111112 let tmpdir = TempDir :: new ( "multirust" ) . unwrap ( ) ;
112- let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , Box :: new ( |_| ( ) ) ) ;
113+ let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
113114 let notify = |_: Notification | ( ) ;
114115 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
115116
@@ -147,7 +148,7 @@ fn multiple_component_install() {
147148 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
148149
149150 let tmpdir = TempDir :: new ( "multirust" ) . unwrap ( ) ;
150- let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , Box :: new ( |_| ( ) ) ) ;
151+ let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
151152 let notify = |_: Notification | ( ) ;
152153 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
153154
@@ -190,7 +191,7 @@ fn uninstall() {
190191 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
191192
192193 let tmpdir = TempDir :: new ( "multirust" ) . unwrap ( ) ;
193- let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , Box :: new ( |_| ( ) ) ) ;
194+ let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
194195 let notify = |_: Notification | ( ) ;
195196 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
196197
@@ -242,7 +243,7 @@ fn component_bad_version() {
242243 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
243244
244245 let tmpdir = TempDir :: new ( "multirust" ) . unwrap ( ) ;
245- let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , Box :: new ( |_| ( ) ) ) ;
246+ let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
246247 let notify = |_: Notification | ( ) ;
247248 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
248249
@@ -288,7 +289,7 @@ fn unix_permissions() {
288289 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
289290
290291 let tmpdir = TempDir :: new ( "multirust" ) . unwrap ( ) ;
291- let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , Box :: new ( |_| ( ) ) ) ;
292+ let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
292293 let notify = |_: Notification | ( ) ;
293294 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
294295
@@ -332,7 +333,7 @@ fn install_to_prefix_that_does_not_exist() {
332333 let prefix = InstallPrefix :: from ( does_not_exist. clone ( ) ) ;
333334
334335 let tmpdir = TempDir :: new ( "multirust" ) . unwrap ( ) ;
335- let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , Box :: new ( |_| ( ) ) ) ;
336+ let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
336337 let notify = |_: Notification | ( ) ;
337338 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
338339
0 commit comments