Is it legal for a pilot to be drunk. Do they give you sobriety tests?

I was thinking of being a pilot since you sit on one spot all day and make 100 grand for it.if i arrive to my shift intoxicated, will my boss find out,. Do you get sobriety tested before flight
8 answers 8