test: fix failing tests

This commit is contained in:
Aleksey Kulikov 2022-04-13 13:54:49 +03:00
parent 7ac9937fcf
commit a28bc46419

View file

@ -15,14 +15,15 @@ void main() {
); );
}); });
test('returns the owner validation setting for repository directories', () { test(
expect(Libgit2.ownerValidation, true); 'sets and returns the owner validation setting for repository '
}); 'directories', () {
final oldValue = Libgit2.ownerValidation;
Libgit2.ownerValidation = !oldValue;
expect(Libgit2.ownerValidation, equals(!oldValue));
test('sets the owner validation setting for repository directories', () { // Set it back
expect(Libgit2.ownerValidation, true); Libgit2.ownerValidation = oldValue;
Libgit2.ownerValidation = false;
expect(Libgit2.ownerValidation, false);
}); });
}); });
} }