1
0
mirror of https://github.com/etcd-io/etcd.git synced 2026-02-05 15:46:51 +01:00
Files
Ivan Valdes 3e57a179da Replace GOLANG_TEST_SHORT with testing.Short()
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>
2025-10-30 10:19:54 -07:00
..
2025-10-19 21:36:39 -07:00
2023-09-17 17:41:58 +08:00