Drivers of fuel tanker trucks staged a protest Tuesday and many parked their vehicles near the Refinadora Costarricense de Petróleo plants.
There were fears that the availability of gasoline would dry up at retail outlets, but that did not happen.
Truck drivers finally reached an accord with the Ministerio de Ambiente, Energía y Telecomunicaciones by early evening.
The protest revolved around five technical requirements for delivering fuel. According to the agreement, truckers have through July to meet five requirements. Refinadora will be allowed to conduct tests to show there are no leaks in the tankers.
Truckers wanted the test to be done with petroleum products instead of water elsewhere.
As soon as the one-page agreement was signed, government officials distributed it.