From beb95072b84ada2addccf9dca167a35f56d2af39 Mon Sep 17 00:00:00 2001 From: Shubham Bajpai Date: Fri, 5 Jan 2024 21:35:18 +0530 Subject: [PATCH] Fix typo in internal/suite.go (#1332) * Fix typo in internal/suite.go * update the test case --- internal/suite.go | 2 +- internal/suite_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{}, 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() {