1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-12-01 08:37:23 +00:00

*: -short should skip integration tests

This commit is contained in:
diamondburned 2023-06-07 18:02:48 -07:00
parent 13a6bf10cc
commit 176d9921c7
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -1,3 +1,4 @@
//go:build !uintonly
// +build !uintonly // +build !uintonly
package testenv package testenv
@ -29,10 +30,15 @@ var (
) )
func Must(t *testing.T) Env { func Must(t *testing.T) Env {
if testing.Short() {
t.Skip("skipping integration test")
}
e, err := GetEnv() e, err := GetEnv()
if err != nil { if err != nil {
t.Skip("integration test variables missing") t.Skip("integration test variables missing")
} }
return e return e
} }