]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3301-notes.sh
tests: use 'test_must_be_empty' instead of 'test_cmp <empty> <out>'
[thirdparty/git.git] / t / t3301-notes.sh
index 2d200fdf36c62c12cbbf2a964d3489edef401257..e5703a0d5b42fb8a76ca85aae77fe312369ea61c 100755 (executable)
@@ -481,10 +481,8 @@ test_expect_success 'list specific note with "git notes list <object>"' '
 '
 
 test_expect_success 'listing non-existing notes fails' '
-       cat >expect <<-EOF &&
-       EOF
        test_must_fail git notes list HEAD >actual &&
-       test_cmp expect actual
+       test_must_be_empty actual
 '
 
 test_expect_success 'append to existing note with "git notes append"' '