chiark / gitweb /
Test suite: Canonicalise json output when generating aq
[dgit.git] / tests / lib
index 38605bd..f1ffa8b 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -253,7 +253,8 @@ t-archive-updated () {
                        "filename" => "$4",
                };
                END {
-                       print to_json \@v or die $!;
+                       my $json = JSON->new->canonical();
+                       print $json->encode(\@v) or die $!;
                }
        '
 }