mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-18 02:36:44 +00:00
included generation of random handle/image
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { buildContainer } from '../src/k8s'
|
||||
import { TestHelper } from './test-setup'
|
||||
import { containerBuild } from '../src/k8s'
|
||||
|
||||
jest.useRealTimers()
|
||||
|
||||
@@ -9,6 +8,13 @@ describe('container build', () => {
|
||||
})
|
||||
|
||||
it('should finish without throwing an exception', async () => {
|
||||
await expect(buildContainer()).resolves.not.toThrow()
|
||||
await expect(
|
||||
containerBuild(
|
||||
{
|
||||
workingDirectory: 'git://github.com/nikola-jokic/dockeraction.git'
|
||||
},
|
||||
'randhandle/randimg:123123'
|
||||
)
|
||||
).resolves.not.toThrow()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user