From cc195f908ad6cf0c2d24341b11b3c3597256a16f Mon Sep 17 00:00:00 2001 From: galargh Date: Fri, 3 Jan 2025 10:57:09 +0100 Subject: [PATCH] test: robust-compiler-downloader-debug --- .github/workflows/v-next-ci.yml | 1 + .../solidity/build-system/compiler/downloader.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/v-next-ci.yml b/.github/workflows/v-next-ci.yml index 4942f097a5..27f5690f40 100644 --- a/.github/workflows/v-next-ci.yml +++ b/.github/workflows/v-next-ci.yml @@ -5,6 +5,7 @@ on: push: branches: - v-next + - robust-compiler-downloader-debug pull_request: workflow_dispatch: diff --git a/v-next/hardhat/test/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts b/v-next/hardhat/test/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts index ae00a74084..8d5c3c2498 100644 --- a/v-next/hardhat/test/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts +++ b/v-next/hardhat/test/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts @@ -435,6 +435,8 @@ describe( await mockDownloader.updateCompilerListIfNeeded(new Set(["0.4.12"])); + await mockDownloader.downloadCompiler("0.4.12"); + assertRejectsWithHardhatError( () => mockDownloader.downloadCompiler("0.4.12"), HardhatError.ERRORS.SOLIDITY.INVALID_DOWNLOAD,