Skip to content

Commit 0b1efdc

Browse files
committed
Merge pull request #3798 from ActiveState/mitchell/cp-1288
Fix install suggest integration test on Linux.
1 parent 9544da8 commit 0b1efdc

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/integration/install_int_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package integration
22

33
import (
44
"path/filepath"
5+
"runtime"
56
"strings"
67
"testing"
78

@@ -40,10 +41,15 @@ func (suite *InstallIntegrationTestSuite) TestInstallSuggest() {
4041
cp := ts.Spawn("config", "set", constants.AsyncRuntimeConfig, "true")
4142
cp.ExpectExitCode(0)
4243

43-
cp = ts.Spawn("install", "djang")
44+
package_name := "djang"
45+
if runtime.GOOS == "linux" {
46+
// For some reason, "djang" on Linux often fails to show suggestions.
47+
package_name = "jinj"
48+
}
49+
cp = ts.Spawn("install", package_name)
4450
cp.Expect("No results found", e2e.RuntimeSolvingTimeoutOpt)
4551
cp.Expect("Did you mean")
46-
cp.Expect("language/python/djang")
52+
cp.Expect("language/python/" + package_name)
4753
cp.ExpectExitCode(1)
4854
}
4955

0 commit comments

Comments
 (0)