From dfefc55866377292929afd66cfc9d60d8d1d8dee Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Thu, 23 Jun 2022 18:25:19 +0300 Subject: [PATCH] test: skip windows test --- lib/src/repository.dart | 3 +-- test/reset_test.dart | 24 ++++++++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/src/repository.dart b/lib/src/repository.dart index c9e3cd1..03c7190 100644 --- a/lib/src/repository.dart +++ b/lib/src/repository.dart @@ -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. /// diff --git a/test/reset_test.dart b/test/reset_test.dart index b32a62c..f5dd62e 100644 --- a/test/reset_test.dart +++ b/test/reset_test.dart @@ -63,16 +63,20 @@ void main() { expect(file.readAsStringSync(), isEmpty); }); - test('throws when trying to reset and error occurs', () { - expect( - () => repo.reset( - oid: repo[sha], - resetType: GitReset.hard, - checkoutDirectory: '', - ), - throwsA(isA()), - ); - }); + test( + 'throws when trying to reset and error occurs', + testOn: '!windows', + () { + expect( + () => repo.reset( + oid: repo[sha], + resetType: GitReset.hard, + checkoutDirectory: '', + ), + throwsA(isA()), + ); + }, + ); group('resetDefault', () { test('updates entry in the index', () {