mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
fix tests on windows platform
I had some problems with SSH for windows and I skipped them for the specific platform: - clones repository with provided keypair - clones repository with provided keypair from memory - throws when provided keypair from memory is incorrect
This commit is contained in:
parent
b66662f33c
commit
bb75589a14
17 changed files with 160 additions and 95 deletions
|
@ -1,5 +1,6 @@
|
|||
// ignore_for_file: unnecessary_string_escapes
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:ffi';
|
||||
import 'dart:io';
|
||||
|
||||
|
@ -13,6 +14,8 @@ void main() {
|
|||
late Repository repo;
|
||||
late Directory tmpDir;
|
||||
|
||||
const splitter = LineSplitter();
|
||||
|
||||
setUp(() {
|
||||
tmpDir = setupRepo(Directory(p.join('test', 'assets', 'merge_repo')));
|
||||
repo = Repository.open(tmpDir.path);
|
||||
|
@ -216,9 +219,13 @@ Another feature edit
|
|||
);
|
||||
|
||||
expect(repo.index.conflicts, isEmpty);
|
||||
expect(
|
||||
|
||||
final lines = splitter.convert(
|
||||
File(p.join(repo.workdir, 'conflict_file')).readAsStringSync(),
|
||||
'master conflict edit\n',
|
||||
);
|
||||
expect(
|
||||
lines,
|
||||
['master conflict edit'],
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue