do not run E2E test on short mode

This commit is contained in:
rhysd 2017-12-29 22:50:17 +09:00
parent 9cf8d19c61
commit 7eef061d32
1 changed files with 7 additions and 6 deletions

View File

@ -5,12 +5,13 @@ import (
"testing"
)
func init() {
if err := exec.Command("go", "build", "../cmd/selfupdate-example/main.go").Run(); err != nil {
panic(err)
}
}
func TestRunSelfUpdateExample(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
if err := exec.Command("go", "build", "../cmd/selfupdate-example").Run(); err != nil {
t.Fatal(err)
}
t.Fatal("TODO")
}