mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-28 01:33:10 +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
|
||||
|
||||
package testenv
|
||||
|
@ -29,10 +30,15 @@ var (
|
|||
)
|
||||
|
||||
func Must(t *testing.T) Env {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping integration test")
|
||||
}
|
||||
|
||||
e, err := GetEnv()
|
||||
if err != nil {
|
||||
t.Skip("integration test variables missing")
|
||||
}
|
||||
|
||||
return e
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue