From d73d783ab2cf14ba28ca63723223d8c85a68cdd5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 2 Sep 2020 11:04:12 +0000 Subject: disambiguate OverIdx and Over by field name We'll use {oidx} as the common field name for the read-write OverIdx, here, to disambiguate it from the read-only {over} field. This hopefully makes it clearer which code paths are read-only and which are read-write. --- t/search.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/search.t') diff --git a/t/search.t b/t/search.t index e2290ecd..f026e509 100644 --- a/t/search.t +++ b/t/search.t @@ -161,7 +161,7 @@ are real EOF my $ghost_id = $rw->add_message($was_ghost); is($ghost_id, int($ghost_id), "ghost_id is an integer: $ghost_id"); - my $msgs = $rw->{over}->get_thread('ghost-message@s'); + my $msgs = $rw->{oidx}->get_thread('ghost-message@s'); is(scalar(@$msgs), 2, 'got both messages in ghost thread'); foreach (qw(sid tid)) { is($msgs->[0]->{$_}, $msgs->[1]->{$_}, "{$_} match"); -- cgit v1.2.3-24-ge0c7