mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: fix tests failing on windows
This commit is contained in:
parent
f4e17b124d
commit
a71bb14b86
8 changed files with 26 additions and 34 deletions
|
@ -1,3 +1,4 @@
|
|||
import 'dart:ffi';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:libgit2dart/libgit2dart.dart';
|
||||
|
@ -30,11 +31,7 @@ void main() {
|
|||
});
|
||||
|
||||
test('throws when trying to get odb and error occurs', () {
|
||||
Directory('${repo.workdir}.git/objects/').deleteSync(recursive: true);
|
||||
expect(
|
||||
() => repo.odb,
|
||||
throwsA(isA<LibGit2Error>()),
|
||||
);
|
||||
expect(() => Repository((nullptr)).odb, throwsA(isA<LibGit2Error>()));
|
||||
});
|
||||
|
||||
test('successfully creates new odb with no backends', () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue