fixed testing adding storage class and persistent volume and timeout to wait for cleanup

This commit is contained in:
Nikola Jokic
2022-06-06 12:56:50 +02:00
parent ec8131abb7
commit 0ebccbd8c6
5 changed files with 50 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import { TestHelper } from './test-setup'
import * as fs from 'fs'
import * as path from 'path'
import { runContainerStep } from '../src/hooks'
import * as fs from 'fs'
import { TestHelper } from './test-setup'
jest.useRealTimers()
@@ -27,5 +27,7 @@ describe('Run container step', () => {
})
afterEach(async () => {
await testHelper.cleanup()
// wait for the job cleanup
await new Promise(resolve => setTimeout(resolve, 300 * 1000))
})
})