Skip to content

Commit

Permalink
api/test: add vk to finnicky services
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmoron committed Nov 15, 2024
1 parent cf40f05 commit 4c006b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/src/util/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const getTests = (service) => loadJSON(getTestPath(service));

// services that are known to frequently fail due to external
// 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 tests = getTests(service);
Expand Down
8 changes: 1 addition & 7 deletions api/src/util/tests/vk.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "clip, defaults",
"canFail": true,
"url": "https://vk.com/clip-57274055_456239788",
"params": {},
"expected": {
Expand All @@ -11,7 +10,6 @@
},
{
"name": "clip, 360",
"canFail": true,
"url": "https://vk.com/clip-57274055_456239788",
"params": {
"videoQuality": "360"
Expand All @@ -23,7 +21,6 @@
},
{
"name": "clip different link, max",
"canFail": true,
"url": "https://vk.com/clips-57274055?z=clip-57274055_456239788",
"params": {
"videoQuality": "max"
Expand All @@ -35,7 +32,6 @@
},
{
"name": "video, defaults",
"canFail": true,
"url": "https://vk.com/video-57274055_456239399",
"params": {},
"expected": {
Expand All @@ -45,7 +41,6 @@
},
{
"name": "4k video",
"canFail": true,
"url": "https://vk.com/video-1112285_456248465",
"params": {
"videoQuality": "max"
Expand All @@ -57,7 +52,6 @@
},
{
"name": "ancient video (fallback to 240p)",
"canFail": true,
"url": "https://vk.com/video-1959_28496479",
"params": {},
"expected": {
Expand All @@ -74,4 +68,4 @@
"status": "error"
}
}
]
]

0 comments on commit 4c006b2

Please sign in to comment.