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. /// [resetType] is one of the [GitReset] flags.
/// ///
/// [strategy], [checkoutDirectory] and [pathspec] are optional checkout /// [strategy], [checkoutDirectory] and [pathspec] are optional checkout
/// options to be used for a HARD reset. The [strategy] will be overridden /// options to be used for a HARD reset.
/// (based on [resetType]).
/// ///
/// [strategy] is optional combination of [GitCheckout] flags. /// [strategy] is optional combination of [GitCheckout] flags.
/// ///

View file

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