Skip to content

test-export-named-branch: avoid randomness in test output

I randomly had different outputs when running this test. Sorting the output fixes the issue.

Example of outputs:

--- /workspace/octobus/hg-git-heptapod/tests/test-export-named-branch.t
+++ /workspace/octobus/hg-git-heptapod/test-export-named-branch.t.err
@@ -36,8 +36,8 @@
   $ find .git/refs/heads
   .git/refs/heads
   .git/refs/heads/branch
-  .git/refs/heads/branch/default
   .git/refs/heads/branch/foo
   .git/refs/heads/branch/bar
+  .git/refs/heads/branch/default
--- /workspace/octobus/hg-git-heptapod/tests/test-export-named-branch.t
+++ /workspace/octobus/hg-git-heptapod/test-export-named-branch.t.err
@@ -36,8 +36,8 @@
   $ find .git/refs/heads
   .git/refs/heads
   .git/refs/heads/branch
+  .git/refs/heads/branch/foo
   .git/refs/heads/branch/default
-  .git/refs/heads/branch/foo
   .git/refs/heads/branch/bar

Merge request reports

Loading