Skip to content

Commit 2bf1c38

Browse files
test: relax compression integration step timeouts
1 parent 1abe1bc commit 2bf1c38

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

test/integration/features/compression/compression-roundtrip.feature.ts

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ Given('a seeded compression roundtrip dataset', async function (this: World<Reco
148148

149149
When(
150150
'I export events using {string} compression',
151+
{ timeout: 20000 },
151152
async function (this: World<Record<string, unknown>>, format: string) {
152153
if (format !== 'gzip' && format !== 'xz') {
153154
throw new Error(`Unsupported test format: ${format}`)
@@ -183,17 +184,21 @@ When('I remove the seeded roundtrip events from the database', async function (t
183184
.delete()
184185
})
185186

186-
When('I import the compressed roundtrip file', async function (this: World<Record<string, unknown>>) {
187-
const state = getRoundtripState(this)
187+
When(
188+
'I import the compressed roundtrip file',
189+
{ timeout: 20000 },
190+
async function (this: World<Record<string, unknown>>) {
191+
const state = getRoundtripState(this)
188192

189-
const result = await runCliScript('src/import-events.ts', [
190-
state.outputFilePath,
191-
'--batch-size',
192-
'2',
193-
])
193+
const result = await runCliScript('src/import-events.ts', [
194+
state.outputFilePath,
195+
'--batch-size',
196+
'2',
197+
])
194198

195-
assertCommandSuccess(result, 'import script')
196-
})
199+
assertCommandSuccess(result, 'import script')
200+
},
201+
)
197202

198203
Then('the seeded roundtrip events are restored', async function (this: World<Record<string, unknown>>) {
199204
const state = getRoundtripState(this)
@@ -226,4 +231,4 @@ After({ tags: '@compression-roundtrip' }, async function (this: World<Record<str
226231
}
227232

228233
this.parameters[ROUNDTRIP_KEY] = undefined
229-
})
234+
})

0 commit comments

Comments
 (0)