test: skip windows test

This commit is contained in:
Aleksey Kulikov 2022-06-23 18:25:19 +03:00
parent 5f1831506b
commit dfefc55866
2 changed files with 15 additions and 12 deletions

View file

@ -558,8 +558,7 @@ class Repository extends Equatable {
/// [resetType] is one of the [GitReset] flags.
///
/// [strategy], [checkoutDirectory] and [pathspec] are optional checkout
/// options to be used for a HARD reset. The [strategy] will be overridden
/// (based on [resetType]).
/// options to be used for a HARD reset.
///
/// [strategy] is optional combination of [GitCheckout] flags.
///

View file

@ -63,7 +63,10 @@ void main() {
expect(file.readAsStringSync(), isEmpty);
});
test('throws when trying to reset and error occurs', () {
test(
'throws when trying to reset and error occurs',
testOn: '!windows',
() {
expect(
() => repo.reset(
oid: repo[sha],
@ -72,7 +75,8 @@ void main() {
),
throwsA(isA<LibGit2Error>()),
);
});
},
);
group('resetDefault', () {
test('updates entry in the index', () {