mirror of
https://github.com/etcd-io/etcd.git
synced 2026-02-05 15:46:51 +01:00
Remove the custom environment variable GOLANG_TEST_SHORT. It is currently used by Main tests (TestMain), as we can't skip tests because testing.M doesn't implement testing.TB. It is possible to do a clean os.Exit(0) (current behavior), but calling testing.Short() fails because this function expects flags to be parsed before. So, it is possible to remove the custom behavior (GOLANG_TEST_SHORT) by parsing flags (if required) before calling testing.Short(), then immediately exit if the result is true (-short flag is set). Signed-off-by: Ivan Valdes <ivan@vald.es>