What difference does the timing make? If a Judge issues a court order, you will have to comply according to the Judge's direction as to time, place, & manner of drug test. If you have an attorney, ask your attorney. If you don't have an attorney, you would be well advised to get one.
This communication does not establish an attorney-client relationship. This communication offers general information based on the limited facts set out in the question, and does not constitute the giving of legal advice. For specific legal advice, consult an attorney in your state who is knowledgeable in this area of law.
I have seen Collin County judges order hair follicle tests on the spot. I recommend that you consult a family law attorney who practices in Collin County on a regular basis. Collin County often does things different from surrounding counties. Good luck!
This attorney can be contacted via email at email@example.com or via phone at 817.305.7170. The above answer does not constitute, and should not be construed as, legal advice.