mirror of
https://github.com/azure/setup-helm.git
synced 2026-12-05 11:41:53 +00:00
fix: update Helm fallback to v4.3.1 (#314)
This commit is contained in:
+2
-4
@@ -229,12 +229,10 @@ describe('run.ts', () => {
|
||||
const fetchSpy = vi
|
||||
.spyOn(globalThis, 'fetch')
|
||||
.mockRejectedValue(new Error(errorMessage))
|
||||
expect(await getLatestHelmVersionWithoutDelay()).toBe(
|
||||
run.stableHelmVersion
|
||||
)
|
||||
expect(await getLatestHelmVersionWithoutDelay()).toBe('v4.3.1')
|
||||
expect(fetchSpy).toHaveBeenCalledTimes(3)
|
||||
expect(core.warning).toHaveBeenCalledWith(
|
||||
expect.stringContaining(errorMessage)
|
||||
`Error while fetching latest Helm release: ${errorMessage}. Using default version v4.3.1. Set 'latest-fallback' to 'false' to fail the step instead`
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user