The World Anti-Doping Agency (WADA) on Wednesday reinstated credentials of a drug testing laboratory in Rio de Janeiro for the Olympic Games, ending a month-long suspension that had threatened to embarrass the host country.
The decision avoided a backup scheme to send blood and urine samples from Olympic athletes to labs outside Brazil during the Games.
Similar steps were taken after the same lab at the Federal University of Rio de Janeiro lost its credentials for the 2014 World Cup, also held in Brazil.
The agency did not explain how the lab had failed to comply with international standards in June or what steps had been taken to fix the situation.
Technical errors leading to false results were likely the cause of the suspension, a source familiar with the decision told Reuters in June.
"Athletes can be confident that anti-doping sample analysis has been robust throughout the laboratory's suspension and that it will also be during the Games," WADA director general Olivier Niggli said in a statement.
The suspension just weeks ahead of the Olympics was a high-profile black eye for the lab, in which Brazil recently invested 188 million reais ($58 million) for new equipment and facilities.
Doping is a major concern ahead of the Rio Games on Aug. 5-21, the first Olympics to be held in South America.
Several anti-doping agencies are pushing to ban Russian athletes after charges of state-backed doping at the 2014 winter Olympics.