There was an error while loading. Please reload this page.
1 parent d2e13ef commit 46174daCopy full SHA for 46174da
1 file changed
tests/test-ci/test-install.R
@@ -1,8 +1,13 @@
1
library(testit)
2
3
assert('normalize_repo() creates a valid url', {
4
- (normalize_repo('https://mirrors.mit.edu/CTAN/') %==%
5
- 'https://mirrors.mit.edu/CTAN/systems/texlive/tlnet')
+ u1 = 'https://mirrors.mit.edu/CTAN/'
+ # for some reason, normalize_repo() may not always work on certain platforms on GHA
6
+ for (i in 1:10) {
7
+ u2 = normalize_repo(u1)
8
+ if (u1 != u2) break else Sys.sleep(1)
9
+ }
10
+ (u2 %==% 'https://mirrors.mit.edu/CTAN/systems/texlive/tlnet')
11
(normalize_repo('https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2020/tlnet-final/') %==%
12
'https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2020/tlnet-final')
13
})
0 commit comments