Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Mar 1, 2023
1 parent 4b4e21a commit f8eb7cf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/hardhat-etherscan/test/integration/PluginTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
TASK_VERIFY_GET_MINIMUM_BUILD,
} from "../../src/constants";
import { deployContract, getRandomString, useEnvironment } from "../helpers";
import { EtherscanNetworkEntry } from "../../src/types";

// These are skipped because they can't currently be run in CI
describe("Plugin integration tests", function () {
Expand Down Expand Up @@ -336,12 +337,6 @@ describe("Plugin integration tests", function () {
// This avoids failure due to compiler downloads.
await this.env.run(TASK_COMPILE, { quiet: true });

const { task }: { task: typeof taskT } = require("hardhat/config");

// We override this task to avoid posting to an actual endpoint and to avoid our own sanity checks.
task(TASK_VERIFY_GET_ETHERSCAN_ENDPOINT).setAction(async () => {
return "http://127.0.0.1:54321";
});
const { ethers } = this.env as any;
const signers = await ethers.getSigners();
signer = signers[0];
Expand Down

0 comments on commit f8eb7cf

Please sign in to comment.