Skip to content

Commit

Permalink
Disable broken assertion that cannot work in the first place
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Oct 20, 2023
1 parent c4ca306 commit d8c023f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/uninstall_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/ActiveState/cli/internal/fileutils"
"github.com/ActiveState/cli/internal/installation"
"github.com/ActiveState/cli/internal/osutils"
"github.com/ActiveState/cli/internal/osutils/user"
"github.com/ActiveState/cli/internal/testhelpers/e2e"
"github.com/ActiveState/cli/internal/testhelpers/tagsuite"
"github.com/stretchr/testify/suite"
Expand Down Expand Up @@ -98,13 +97,15 @@ func (suite *UninstallIntegrationTestSuite) testUninstall(all bool) {
suite.Fail("State service executable should not exist after uninstall")
}

/* Disabled because we never configured anything in the first place: https://activestatef.atlassian.net/browse/DX-2296
if runtime.GOOS == "linux" {
// When installed in a non-desktop environment (i.e. on a server), verify the user's ~/.profile was reverted.
homeDir, err := user.HomeDir()
suite.Require().NoError(err)
profile := filepath.Join(homeDir, ".profile")
suite.NotContains(string(fileutils.ReadFileUnsafe(profile)), ts.SvcExe, "autostart should not be configured for Linux server environment anymore")
}
*/

if runtime.GOOS == "darwin" {
if fileutils.DirExists(filepath.Join(ts.Dirs.Bin, "system")) {
Expand Down

0 comments on commit d8c023f

Please sign in to comment.