The US Confederates also lost 1 war.
So did the modern Japanese (also hugely racists).
I’d argue the Japanese didn’t just fight one war, though. They at least managed to trounce the Russians.
Once. They explicitly had no interest in fighting the USSR regarding anything out of Manchuria because they knew it would ruin them.
Arguably Japan won in 1907, 1918, and in 1938ish but there was a lot of partisan activity in China.