test: disable repository owner verification for tests

This commit is contained in:
Aleksey Kulikov 2022-04-13 13:24:53 +03:00
parent f42f8a6e1b
commit 451b439eca
4 changed files with 57 additions and 2 deletions

View file

@ -14,5 +14,15 @@ void main() {
{GitFeature.threads, GitFeature.https, GitFeature.ssh, GitFeature.nsec},
);
});
test('returns the owner validation setting for repository directories', () {
expect(Libgit2.ownerValidation, true);
});
test('sets the owner validation setting for repository directories', () {
expect(Libgit2.ownerValidation, true);
Libgit2.ownerValidation = false;
expect(Libgit2.ownerValidation, false);
});
});
}