Term: a 'brown trouser moment'
Example: the cops dog kept sniffing our bag in the airport, that was such a 'brown trouser moment'
Definition: similar to 'shit a brick', when something so scary happens or when something makes you really nervous