This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 11faa1914 fix(ocaml_binding): sort `actual` & `expected` to pass ci 
(#3733)
11faa1914 is described below

commit 11faa19143d55099f23033f819433496d2528095
Author: Flash <[email protected]>
AuthorDate: Sun Dec 10 15:12:24 2023 +0800

    fix(ocaml_binding): sort `actual` & `expected` to pass ci (#3733)
---
 bindings/ocaml/test/test.ml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bindings/ocaml/test/test.ml b/bindings/ocaml/test/test.ml
index 26a7b04d3..35c23f988 100644
--- a/bindings/ocaml/test/test.ml
+++ b/bindings/ocaml/test/test.ml
@@ -84,10 +84,10 @@ let test_list test_ctxt =
     (test_check_result
        (Operator.write bo "/testdir/bar" (Bytes.of_string "foo")));
   let array = Operator.list bo "testdir/" |> test_check_result in
-  let names = Array.map Operator.Entry.name array in
+  let actual = Array.map Operator.Entry.name array in
   let expected = [| "foo"; "bar" |] in
-  Array.sort compare expected;
-  assert_equal expected names;
+  List.iter (Array.sort compare) [ expected; actual ];
+  assert_equal expected actual;
   assert_equal 2 (Array.length array);
   ()
 

Reply via email to