Skip to content

Commit

Permalink
Fix test with non-deterministic error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Oct 4, 2023
1 parent ab942d2 commit 0c16925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hardhat-core/test/builtin-tasks/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ Read about compiler configuration at https://hardhat.org/config
await expectHardhatErrorAsync(
() => this.env.run("compile"),
ERRORS.RESOLVER.AMBIGUOUS_SOURCE_NAMES,
"HH415: Two different source names ('foo/Foo.sol' and 'bar/Foo.sol') resolve to the same file"
/Two different source names \('\w+\/Foo.sol' and '\w+\/Foo.sol'\) resolve to the same file/
);
});
});
Expand Down

0 comments on commit 0c16925

Please sign in to comment.