Skip to content

Commit

Permalink
test: robust-compiler-downloader-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jan 3, 2025
1 parent a6fab0e commit 52a9c73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/v-next-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- v-next
- robust-compiler-downloader-debug
pull_request:
workflow_dispatch:

Expand Down
4 changes: 3 additions & 1 deletion v-next/hardhat-test-utils/src/hardhat-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import assert from "node:assert/strict";
import { HardhatError } from "@ignored/hardhat-vnext-errors";
import { ensureError } from "@ignored/hardhat-vnext-utils/error";

import util from "node:util";

Check failure on line 8 in v-next/hardhat-test-utils/src/hardhat-error.ts

View workflow job for this annotation

GitHub Actions / [hardhat-test-utils] lint

`node:util` import should occur before import of `@ignored/hardhat-vnext-errors`

/**
* Asserts that an error is a HardhatError with a certain descriptor and message
* arguments.
Expand All @@ -25,7 +27,7 @@ export function assertIsHardhatError<ErrorDescriptorT extends ErrorDescriptor>(
assert.equal(
error.descriptor.number,
descriptor.number,
`Expected error number ${descriptor.number}, but got ${error.descriptor.number}`,
`Expected error number ${descriptor.number}, but got ${error.descriptor.number} (${util.format(error)})`,
);

assert.deepEqual(error.descriptor, descriptor);
Expand Down

0 comments on commit 52a9c73

Please sign in to comment.