Skip to content

Commit

Permalink
skip tests in CI environment due to interactive prompt requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed Jun 9, 2019
1 parent 6389eba commit 5f9e77d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libsecret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package keyring

import (
"os"
"sort"
"testing"

Expand All @@ -21,6 +22,10 @@ import (
// and provides the Prompt interface using the go-libsecret library.

func libSecretSetup(t *testing.T) (Keyring, func(t *testing.T)) {
if os.Getenv("CI") != "" {
t.Skip("Skipping testing in CI environment")
}

service, err := libsecret.NewService()
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 5f9e77d

Please sign in to comment.