There currently is one option to travel by night train from Szolnok (Hungary) to Lviv (Ukraine), taking between approximately 10 and 12 hours: Namely the 10 operated by MÁV-Start.
MÁV-Start is Hungary's national passenger railway operator, running domestic and international trains connecting Hungary with neighboring countries.