Anyone have general strategies or advice for testing code that makes heavy use of gen_server:cast? The best I could come up with was to write _sync versions of all my functions, with gen_server:cast replaced by gen_server:call, and then test those, but that seems both clunky and fragile. martin