]> Sergey Matveev's repositories - public-inbox.git/commit
t/solver_git.t: avoid redundant work for snapshot test
authorEric Wong <e@80x24.org>
Sun, 1 Jan 2023 10:54:40 +0000 (10:54 +0000)
committerEric Wong <e@80x24.org>
Sun, 1 Jan 2023 21:25:18 +0000 (21:25 +0000)
commitc4b882036d272cc276cbf3a0d108244893c3c8af
treefc0955f3b83c9fee93d687e0f3dfad48e2891444
parent115d59641bda19405a3ed82dc72e129f9196fad5
t/solver_git.t: avoid redundant work for snapshot test

We only have to generate the expected tarball and checksum once
for testing both -httpd and generic PSGI. And drop the redundant
length check since the SHA-256 check is sufficient.

This saves 20-30ms on my system.
t/solver_git.t