From f2e803a3d0591bd58588b461c3d99d66cf208af9 Mon Sep 17 00:00:00 2001 From: Shubham Bajpai Date: Fri, 5 Jan 2024 14:38:28 +0530 Subject: [PATCH 1/2] Fix typo in internal/suite.go --- internal/suite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/suite.go b/internal/suite.go index fe6e8288a..6746152ec 100644 --- a/internal/suite.go +++ b/internal/suite.go @@ -79,7 +79,7 @@ func NewSuite() *Suite { func (suite *Suite) Clone() (*Suite, error) { if suite.phase != PhaseBuildTopLevel { - return nil, fmt.Errorf("cnanot clone suite after tree has been built") + return nil, fmt.Errorf("cannot clone suite after tree has been built") } return &Suite{ tree: &TreeNode{}, From 3d48a571e56dd3c400ac4a4f0b6b23a130ef851a Mon Sep 17 00:00:00 2001 From: Shubham Bajpai Date: Fri, 5 Jan 2024 16:58:55 +0530 Subject: [PATCH 2/2] update the test case --- internal/suite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/suite_test.go b/internal/suite_test.go index 1e7194034..f54965cd4 100644 --- a/internal/suite_test.go +++ b/internal/suite_test.go @@ -88,7 +88,7 @@ var _ = Describe("Suite", func() { It("fails if the tree has already been built", func() { Ω(suite.BuildTree()).Should(Succeed()) _, err := suite.Clone() - Ω(err).Should(MatchError("cnanot clone suite after tree has been built")) + Ω(err).Should(MatchError("cannot clone suite after tree has been built")) }) It("generates the same tree as the original", func() {