Skip to content

Commit

Permalink
Increase debugging for test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Oct 6, 2023
1 parent ce5244d commit 228b875
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace cloud.google.com/go => cloud.google.com/go v0.110.0
require (
github.com/99designs/gqlgen v0.17.19
github.com/ActiveState/go-ogle-analytics v0.0.0-20170510030904-9b3f14901527
github.com/ActiveState/termtest v0.7.3-0.20230914171339-6e6462ec3e3f
github.com/ActiveState/termtest v0.7.3-0.20231006191111-13d903a6f2de
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
github.com/alecthomas/participle/v2 v2.0.0
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ github.com/ActiveState/graphql v0.0.0-20230719154233-6949037a6e48 h1:UCx/ObpVRgC
github.com/ActiveState/graphql v0.0.0-20230719154233-6949037a6e48/go.mod h1:NhUbNQ8UpfnC6nZvZ8oThqYSCE/G8FQp9JUrK9jXJs0=
github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14 h1:RdhhSiwmgyUaaF2GBNrbqTwE5SM+MaVjwf91Ua+CK8c=
github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14/go.mod h1:5mM6vNRQwshCjlkOnVpwC//4ZpkiC6nmZr8lPOxJdXs=
github.com/ActiveState/termtest v0.7.3-0.20230914171339-6e6462ec3e3f h1:qvVEJlgKYo2NArClTlzSvn/xovhghZv8CJiV7My1TnI=
github.com/ActiveState/termtest v0.7.3-0.20230914171339-6e6462ec3e3f/go.mod h1:RyWp2NaaTrVAa+XjMHpKAqwBFWbL6wE12HQxiZNGAqU=
github.com/ActiveState/termtest v0.7.3-0.20231006191111-13d903a6f2de h1:KqSmWBIEQracF6ixlQ0eNeKN+wYxDHNJWbrShI6F8NE=
github.com/ActiveState/termtest v0.7.3-0.20231006191111-13d903a6f2de/go.mod h1:RyWp2NaaTrVAa+XjMHpKAqwBFWbL6wE12HQxiZNGAqU=
github.com/AlecAivazis/survey/v2 v2.0.5/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74=
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
Expand Down
3 changes: 3 additions & 0 deletions test/integration/history_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/ActiveState/cli/internal/testhelpers/e2e"
"github.com/ActiveState/cli/internal/testhelpers/tagsuite"
"github.com/ActiveState/termtest"
"github.com/stretchr/testify/suite"
)

Expand Down Expand Up @@ -38,7 +39,9 @@ func (suite *HistoryIntegrationTestSuite) TestHistory_History() {
cp.Expect("• requests (2.26.0 → 2.7.0)")
cp.Expect("• autopip (1.6.0 → Auto)")
cp.Expect("+ autopip 1.6.0")
cp.SetLogger(termtest.VerboseLogger)
cp.Expect("- convertdate")
cp.SetLogger(termtest.VoidLogger)
cp.Expect(`+ Platform`)
suite.Assert().NotContains(cp.Output(), "StructuredChanges")
cp.ExpectExitCode(0)
Expand Down
4 changes: 2 additions & 2 deletions vendor/github.com/ActiveState/termtest/helpers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions vendor/github.com/ActiveState/termtest/termtest.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ github.com/ActiveState/graphql
# github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14
## explicit; go 1.13
github.com/ActiveState/pty
# github.com/ActiveState/termtest v0.7.3-0.20230914171339-6e6462ec3e3f
# github.com/ActiveState/termtest v0.7.3-0.20231006191111-13d903a6f2de
## explicit; go 1.18
github.com/ActiveState/termtest
# github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
Expand Down

0 comments on commit 228b875

Please sign in to comment.