about summary refs log tree commit homepage
path: root/t/shared_kv.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-29 12:43:00 +0500
committerEric Wong <e@80x24.org>2021-01-30 01:08:21 +0000
commit12a067a41430f579f5a3cea4e2d027242e604f72 (patch)
tree594b35e3bf33766c5ff3eaa771f2985afa107ba7 /t/shared_kv.t
parentc0365a9fae1a72707fb78249861c80fed582d89b (diff)
downloadpublic-inbox-12a067a41430f579f5a3cea4e2d027242e604f72.tar.gz
We don't need another hash slot when we can encode the object ID
and PID owner into the field name itself.
Diffstat (limited to 't/shared_kv.t')
-rw-r--r--t/shared_kv.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/shared_kv.t b/t/shared_kv.t
index 6f6374f2..fcae688a 100644
--- a/t/shared_kv.t
+++ b/t/shared_kv.t
@@ -9,7 +9,7 @@ use_ok 'PublicInbox::SharedKV';
 my ($tmpdir, $for_destroy) = tmpdir();
 local $ENV{TMPDIR} = $tmpdir;
 my $skv = PublicInbox::SharedKV->new;
-my $skv_tmpdir = $skv->{tmpdir};
+my $skv_tmpdir = $skv->{"tmp$$.$skv"};
 ok(-d $skv_tmpdir, 'created a temporary dir');
 $skv->dbh;
 my $dead = "\xde\xad";