Consider two observer in a tree-torus space of size $L$. Observer $A$ is at rest, while observer $B$ moves in the $x$-direction with constant velocity $v$. $A$ and $B$ began at the same event, and while $A$ remains still, $B$ moves once around the universe and comes back to intersect the worldline of $A$ without ever having to accelerate (since the universe is periodic).
I've obtained proper time measured by $A$ (because observer $A$ is at rest, so the trajectory of $A$ is characterized by $v = 0$.):
$$\tau ~=~\int d\tau =\int \sqrt{1-v^{2}} dt~=~t.$$
For particle $B$, it moves at constant velocity $v$:
$$\tau ~=~\int d\tau ~=~\int \sqrt{1-v^{2}} dt~=~t\sqrt{1-v^{2}}.$$
I think this result is inconsistent with my understanding of Lorentz invariance because the times don’t match and no one was accelerated and this is not the usual intuition for Lorentz invariance. Is this really consistent with Lorentz invariance?