Skip to content

Commit

Permalink
simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez committed Nov 22, 2024
1 parent e13d91c commit d171882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/testcases/subnet/sov/addRemoveValidatorPoA/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ var _ = ginkgo.Describe("[Etna AddRemove Validator SOV PoA]", func() {
gomega.Expect(err).Should(gomega.BeNil())
fmt.Println(output)
// make sure we can find string with "http://127.0.0.1:9660" and "L1:Validating" string in the output
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9652.*\[NodeID-[^\]]+\].*Validating\]`), "expect to have L1 validating")
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9652.*Validating`), "expect to have L1 validating")
// make sure we can do the same for "http://127.0.0.1:9662"
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9654.*\[NodeID-[^\]]+\].*Validating\]`), "expect to have L1 validating")
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9654.*Validating`), "expect to have L1 validating")
})

ginkgo.It("Can remove bootstrap validator", func() {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/testcases/subnet/sov/addRemoveValidatorPoS/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ var _ = ginkgo.Describe("[Etna AddRemove Validator SOV PoS]", func() {
gomega.Expect(err).Should(gomega.BeNil())
fmt.Println(output)
// make sure we can find string with "http://127.0.0.1:9660" and "L1:Validating" string in the output
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9652.*\[NodeID-[^\]]+\].*Validating\]`), "expect to have L1 validating")
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9652.*Validating`), "expect to have L1 validating")
// make sure we can do the same for "http://127.0.0.1:9662"
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9654.*\[NodeID-[^\]]+\].*Validating\]`), "expect to have L1 validating")
gomega.Expect(output).To(gomega.MatchRegexp(`http://127\.0\.0\.1:9654.*Validating`), "expect to have L1 validating")
})

ginkgo.It("Can wait for min staking period to pass", func() {
Expand Down

0 comments on commit d171882

Please sign in to comment.