While a tooth infection (or infection of any kind) increases the risk for endocarditis -- this is primarily in those individuals who have structural heart or valvular disease, prosthetic heart valves and/or a history of previous infective endocarditis. Because of which, the ACC/AHA recommends antibiotic prophylaxis for those individuals (above) who are to undergo any invasive surgical or dental procedures. Unless you have one of the aforementioned issues, your risk is very very low and have no need to worry about this.
Just to add i did heart tests recently and it was all ok...