mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
api/test: add vk to finnicky services
This commit is contained in:
parent
cf40f0542f
commit
4c006b2291
|
@ -13,7 +13,7 @@ const getTests = (service) => loadJSON(getTestPath(service));
|
||||||
|
|
||||||
// services that are known to frequently fail due to external
|
// services that are known to frequently fail due to external
|
||||||
// factors (e.g. rate limiting)
|
// factors (e.g. rate limiting)
|
||||||
const finnicky = new Set(['bilibili', 'instagram', 'facebook', 'youtube']);
|
const finnicky = new Set(['bilibili', 'instagram', 'facebook', 'youtube', 'vk']);
|
||||||
|
|
||||||
const runTestsFor = async (service) => {
|
const runTestsFor = async (service) => {
|
||||||
const tests = getTests(service);
|
const tests = getTests(service);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "clip, defaults",
|
"name": "clip, defaults",
|
||||||
"canFail": true,
|
|
||||||
"url": "https://vk.com/clip-57274055_456239788",
|
"url": "https://vk.com/clip-57274055_456239788",
|
||||||
"params": {},
|
"params": {},
|
||||||
"expected": {
|
"expected": {
|
||||||
|
@ -11,7 +10,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "clip, 360",
|
"name": "clip, 360",
|
||||||
"canFail": true,
|
|
||||||
"url": "https://vk.com/clip-57274055_456239788",
|
"url": "https://vk.com/clip-57274055_456239788",
|
||||||
"params": {
|
"params": {
|
||||||
"videoQuality": "360"
|
"videoQuality": "360"
|
||||||
|
@ -23,7 +21,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "clip different link, max",
|
"name": "clip different link, max",
|
||||||
"canFail": true,
|
|
||||||
"url": "https://vk.com/clips-57274055?z=clip-57274055_456239788",
|
"url": "https://vk.com/clips-57274055?z=clip-57274055_456239788",
|
||||||
"params": {
|
"params": {
|
||||||
"videoQuality": "max"
|
"videoQuality": "max"
|
||||||
|
@ -35,7 +32,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "video, defaults",
|
"name": "video, defaults",
|
||||||
"canFail": true,
|
|
||||||
"url": "https://vk.com/video-57274055_456239399",
|
"url": "https://vk.com/video-57274055_456239399",
|
||||||
"params": {},
|
"params": {},
|
||||||
"expected": {
|
"expected": {
|
||||||
|
@ -45,7 +41,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "4k video",
|
"name": "4k video",
|
||||||
"canFail": true,
|
|
||||||
"url": "https://vk.com/video-1112285_456248465",
|
"url": "https://vk.com/video-1112285_456248465",
|
||||||
"params": {
|
"params": {
|
||||||
"videoQuality": "max"
|
"videoQuality": "max"
|
||||||
|
@ -57,7 +52,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ancient video (fallback to 240p)",
|
"name": "ancient video (fallback to 240p)",
|
||||||
"canFail": true,
|
|
||||||
"url": "https://vk.com/video-1959_28496479",
|
"url": "https://vk.com/video-1959_28496479",
|
||||||
"params": {},
|
"params": {},
|
||||||
"expected": {
|
"expected": {
|
||||||
|
@ -74,4 +68,4 @@
|
||||||
"status": "error"
|
"status": "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue