This will depend on where and why you were tested.
In the workplace, this will depend on your company's alcohol and other drug (AOD) policy.
If businesses are conducting workplace screening for drugs and alcohol, it is highly recommended they have an established policy explaining how and when tests may be administered, and the consequences of specific results.
If your drug test returns positive results in a police-conducted roadside test, the consequences vary by jurisdiction. In Australia, such a result will generally result in arrest, licence suspension, and court proceedings.
Furthermore, this may result in hefty fines or prison sentences. Andatech strongly recommends against any consumption of illicit drugs, but especially when operating motor vehicles.
If your positive test result is registered in an at-home test taken voluntarily, there are few immediate consequences.
However, Andatech urges at-home users who receive positive test results to not operate motor vehicles, trade vehicles, heavy machinery, or otherwise engage in risky practices with drugs in their system.