test: disable repository owner verification for tests (#47)

This commit is contained in:
Aleksey Kulikov 2022-04-13 14:02:26 +03:00 committed by GitHub
parent f42f8a6e1b
commit 94c40f9a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 4 deletions

View file

@ -14,5 +14,16 @@ void main() {
{GitFeature.threads, GitFeature.https, GitFeature.ssh, GitFeature.nsec},
);
});
test(
'sets and returns the owner validation setting for repository '
'directories', () {
final oldValue = Libgit2.ownerValidation;
Libgit2.ownerValidation = !oldValue;
expect(Libgit2.ownerValidation, equals(!oldValue));
// Set it back
Libgit2.ownerValidation = oldValue;
});
});
}