service: do not run user service test by default (fails in CI)
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
package service_test
|
package service_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -40,8 +41,13 @@ func TestRunInterrupt(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const testInstallEnv = "TEST_USER_INSTALL"
|
||||||
|
|
||||||
// Should always run, without asking for any permission
|
// Should always run, without asking for any permission
|
||||||
func TestUserRunInterrupt(t *testing.T) {
|
func TestUserRunInterrupt(t *testing.T) {
|
||||||
|
if os.Getenv(testInstallEnv) != "1" {
|
||||||
|
t.Skipf("env %q is not set to 1", testInstallEnv)
|
||||||
|
}
|
||||||
p := &program{}
|
p := &program{}
|
||||||
options := make(service.KeyValue)
|
options := make(service.KeyValue)
|
||||||
options["UserService"] = true
|
options["UserService"] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user