extend query limit timeout
This commit is contained in:
parent
8b1fc513ad
commit
3f46ea2af4
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -12,8 +12,6 @@ jobs:
|
|||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
node_version:
|
node_version:
|
||||||
- 10
|
|
||||||
- 12
|
|
||||||
- 14
|
- 14
|
||||||
- 15
|
- 15
|
||||||
architecture:
|
architecture:
|
||||||
@ -28,6 +26,8 @@ jobs:
|
|||||||
# node_version: 15
|
# node_version: 15
|
||||||
# architecture: arm64
|
# architecture: arm64
|
||||||
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
|
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ SECRETS.GH_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
|
@ -8,7 +8,7 @@ const startApplication = function() {
|
|||||||
args: ["."],
|
args: ["."],
|
||||||
chromeDriverArgs: ['remote-debugging-port=' + Math.floor(Math.random() * (9999 - 9000) + 9000)],
|
chromeDriverArgs: ['remote-debugging-port=' + Math.floor(Math.random() * (9999 - 9000) + 9000)],
|
||||||
startTimeout: 30000,
|
startTimeout: 30000,
|
||||||
waitTimeout: 30000,
|
waitTimeout: 60000,
|
||||||
quitTimeout: 15000
|
quitTimeout: 15000
|
||||||
});
|
});
|
||||||
return this.app.start().then(() => {
|
return this.app.start().then(() => {
|
||||||
|
@ -55,13 +55,13 @@ describe("download", function() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it("wait until downloaded", async function() {
|
it("wait until downloaded", async function() {
|
||||||
this.timeout(90000);
|
this.timeout(120000);
|
||||||
const { app } = this
|
const { app } = this
|
||||||
await app.client.$('.torrentRow .progressDownloading')
|
await app.client.$('.torrentRow .progressDownloading')
|
||||||
console.log('download progress', await (await app.client.$('.torrentRow .progressDownloading')).getText());
|
console.log('download progress', await (await app.client.$('.torrentRow .progressDownloading')).getText());
|
||||||
await app.client.waitUntil(async () => {
|
await app.client.waitUntil(async () => {
|
||||||
return (await (await app.client.$('.torrentRow .progressDownloading')).getText()) === '100.0%'
|
return (await (await app.client.$('.torrentRow .progressDownloading')).getText()) === '100.0%'
|
||||||
}, 80000, 'expected that download will be finished', 200)
|
}, 100000, 'expected that download will be finished', 200)
|
||||||
// There is some time before button will be replaced
|
// There is some time before button will be replaced
|
||||||
await asyncWait(800);
|
await asyncWait(800);
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ describe("download", function() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it("download file to folder", async function() {
|
it("download file to folder", async function() {
|
||||||
this.timeout(90000);
|
this.timeout(120000);
|
||||||
const { app } = this
|
const { app } = this
|
||||||
await (await app.client.$('#searchInput')).setValue('1413ba1915affdc3de7e1a81d6fdc32ef19395c9')
|
await (await app.client.$('#searchInput')).setValue('1413ba1915affdc3de7e1a81d6fdc32ef19395c9')
|
||||||
await (await app.client.$('#search')).click()
|
await (await app.client.$('#search')).click()
|
||||||
@ -119,7 +119,7 @@ describe("download", function() {
|
|||||||
// Downloading check
|
// Downloading check
|
||||||
await app.client.waitUntil(async () => {
|
await app.client.waitUntil(async () => {
|
||||||
return (await (await app.client.$('.torrentRow .progressDownloading')).getText()) === '100.0%'
|
return (await (await app.client.$('.torrentRow .progressDownloading')).getText()) === '100.0%'
|
||||||
}, 80000, 'expected that download will be finished', 200)
|
}, 100000, 'expected that download will be finished', 200)
|
||||||
// Check downloaded to directory
|
// Check downloaded to directory
|
||||||
assert(fs.existsSync(fileFolderTest));
|
assert(fs.existsSync(fileFolderTest));
|
||||||
assert.equal(await md5(fileFolderTest), '7df171da63e2013c9b17e1857615b192');
|
assert.equal(await md5(fileFolderTest), '7df171da63e2013c9b17e1857615b192');
|
||||||
|
@ -61,6 +61,7 @@ describe("sphinx", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it("query limit", function(done) {
|
it("query limit", function(done) {
|
||||||
|
this.timeout(8000);
|
||||||
const test = async () => {
|
const test = async () => {
|
||||||
const sphinx = await pool()
|
const sphinx = await pool()
|
||||||
let promises = []
|
let promises = []
|
||||||
|
Loading…
Reference in New Issue
Block a user