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:
parent
13a6bf10cc
commit
176d9921c7
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue