CI jobs have no $USER, fix tests
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -63,3 +64,7 @@ func testEqual(a []byte) func([]byte) error {
|
||||
func testEqualString(a string) func([]byte) error {
|
||||
return testEqual([]byte(a))
|
||||
}
|
||||
|
||||
func testInPipeline() bool {
|
||||
return os.Getenv("CI") != ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user