Skip to content

Commit 506855a

Browse files
committed
Make git unit test not flaky
1 parent 7c42099 commit 506855a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/git.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,8 @@ export async function getFileChanges(
149149
},
150150
});
151151

152+
additions.sort((a, b) => a.path.localeCompare(b.path));
153+
deletions.sort((a, b) => a.path.localeCompare(b.path));
154+
152155
return { additions, deletions };
153156
}

0 commit comments

Comments
 (0)