We assume that $\mu$ is a measure on $X$. Note that is the only standing assumption here; no norms or measures are assumed finite below except where explicitly stated.
The question as stated is unclear. The question at the linked post is clear, but slightly silly because the hypotheses are obviously redundant. Here are the facts, or at least some of the facts:
Theorem 1. If there exists $p<\infty$ with $||f||_p<\infty$ then $||f||_p\to||f||_\infty$.
No need there to assume $\mu(X)<\infty$. I used the word "silly" because if we do assume $\mu(X)<\infty$ then $f\in L^\infty$ implies $f\in L^p$ for all $p$; having all three hypotheses $\mu(X)<\infty$, $f\in L^p$ for some finite $p$ and also $f\in L^\infty$ is just silly when the first and third so obviously imply the second. Proof below.
Another true fact, very easy:
Theorem 2. If $||f||_\infty=\infty$ then $||f||_p\to||f||_\infty$.
What $\mu(X)<\infty$ does get us is this:
Corollary If $\mu(X)<\infty$ then $||f||_p\to||f||_\infty$.
This follows from Theorem 1 or from Theorem 2, depending on whether $f\in L^\infty$.
So if we're going to get $||f||_p\not\to||f||_\infty$ the only possibility is to have $||f||_p=\infty$ for every finite $p$ while $||f||_\infty<\infty$. Which of course requires $\mu(X)=\infty$. And there you are:
Example Suppose $\mu(X)=\infty$. Let $f=1$. Then $||f||_p\not\to||f||_\infty$.
Proofs
Again, note that there are no standing assumptions about anything being finite.
Lemma. $\liminf_{p\to\infty}||f||_p\ge||f||_\infty$.
Proof: Say $0<A<||f||_\infty$. Let $E=\{|f|\ge A\}$. Then $\mu(E)>0$ by definition, while $||f||_p\ge A \mu(E)^{1/p}$. If $\mu(E)<\infty$ then $\mu(E)^{1/p}\to1$, while if $\mu(E)=\infty$ then $\mu(E)=\infty$. In either case we see $\liminf||f||_p\ge A$. QED.
Theorem 2 follows from the lemma.
Proof of Theorem 1: By the lemma we may assume that $||f||_\infty<\infty$, and we need only show that $\limsup||f||_p\le||f||_\infty$. Say $||f||_{p_0}<\infty.$ For $p>p_0$ we have $$||f||_p\le||f||_{p_0}^{p_0/p}||f||_\infty^{(p-p_0)/p}\to||f||_\infty.$$QED.