This depends on a country of destination and the airline regulations. Most countries used to require a negative PCR test performed within 72 hours from boarding, but now with new variants the requirements are becoming more and more strict and now in some cases as short as 24 hours!