We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f95788 commit 9c71d62Copy full SHA for 9c71d62
test/integration/publish_int_test.go
@@ -4,6 +4,7 @@ import (
4
"fmt"
5
"os"
6
"regexp"
7
+ "runtime"
8
"testing"
9
"time"
10
@@ -32,6 +33,14 @@ func (suite *PublishIntegrationTestSuite) TestPublish() {
32
33
// For development convenience, should not be committed without commenting out..
34
// os.Setenv(constants.APIHostEnvVarName, "pr13375.activestate.build")
35
36
+ // Set EDITOR environment variable for testing purposes
37
+ if runtime.GOOS == "windows" {
38
+ suite.Require().NoError(os.Setenv("EDITOR", "notepad.exe"))
39
+ } else {
40
+ suite.Require().NoError(os.Setenv("EDITOR", "nano"))
41
+ }
42
+ defer os.Unsetenv("EDITOR")
43
+
44
type input struct {
45
args []string
46
metafile *string
0 commit comments