You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
429 to mapOf("Retry-After" to HTTP_DATE_FORMAT.format(Instant.now().plusMillis(awaitMillis).atZone(ZoneId.systemDefault())))
69
+
}
64
70
65
71
//Check links via: curl --silent -X GET --head 'URL'
66
72
val client =MockedHttpClient.fromMeta(
@@ -83,6 +89,13 @@ internal class LinkCheckerTest {
83
89
rateLimitGH(-1500),
84
90
ok(),
85
91
),
92
+
"https://www.bearer.com/" to listOf(
93
+
// Use variant with "delay-seconds"
94
+
rateLimitSpecSec(1),
95
+
// Use variant with "http-date"
96
+
rateLimitSpecDate(100),
97
+
ok(),
98
+
),
86
99
"https://github.com/androidx/androidx/blob/androidx-main/buildSrc/public/src/main/kotlin/androidx/build/LibraryGroups.kt" to listOf(
87
100
notFound(),
88
101
),
@@ -95,7 +108,7 @@ internal class LinkCheckerTest {
95
108
mapOf(
96
109
"Demo.md:1:25" to "https://ya.ru -> 302 -> https://ya.ru/",
97
110
"Demo.md:3:14" to "http://schema.org -> 301 -> https://schema.org/",
98
-
"Demo.md:5:14" to "https://github.com/androidx/androidx/blob/androidx-main/buildSrc/public/src/main/kotlin/androidx/build/LibraryGroups.kt -> 404",
111
+
"Demo.md:7:14" to "https://github.com/androidx/androidx/blob/androidx-main/buildSrc/public/src/main/kotlin/androidx/build/LibraryGroups.kt -> 404",
0 commit comments