From 0c16925304f7e5cb7bbe41227a15b9a88122ac47 Mon Sep 17 00:00:00 2001 From: Franco Victorio Date: Fri, 15 Sep 2023 18:02:34 +0200 Subject: [PATCH] Fix test with non-deterministic error message --- packages/hardhat-core/test/builtin-tasks/compile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat-core/test/builtin-tasks/compile.ts b/packages/hardhat-core/test/builtin-tasks/compile.ts index 00ef36d1aa..ab08b2258c 100644 --- a/packages/hardhat-core/test/builtin-tasks/compile.ts +++ b/packages/hardhat-core/test/builtin-tasks/compile.ts @@ -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/ ); }); });