mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 23:06:16 +02:00
Fix test
This commit is contained in:
parent
b88950ec77
commit
5e83c0427f
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ TEST_F(GitUtilsTest, sink_hardlink)
|
||||||
sink->createHardlink(CanonPath("foo-1.1/link"), CanonPath("hello"));
|
sink->createHardlink(CanonPath("foo-1.1/link"), CanonPath("hello"));
|
||||||
FAIL() << "Expected an exception";
|
FAIL() << "Expected an exception";
|
||||||
} catch (const nix::Error & e) {
|
} catch (const nix::Error & e) {
|
||||||
ASSERT_THAT(e.msg(), testing::HasSubstr("invalid hard link target"));
|
ASSERT_THAT(e.msg(), testing::HasSubstr("cannot find hard link target"));
|
||||||
ASSERT_THAT(e.msg(), testing::HasSubstr("/hello"));
|
ASSERT_THAT(e.msg(), testing::HasSubstr("/hello"));
|
||||||
ASSERT_THAT(e.msg(), testing::HasSubstr("foo-1.1/link"));
|
ASSERT_THAT(e.msg(), testing::HasSubstr("foo-1.1/link"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue