Skip to content

Commit 51d7f52

Browse files
committed
fix test expectation
1 parent b60d12c commit 51d7f52

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/kosli/archiveEnvironment_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ func (suite *ArchiveEnvironmentCommandTestSuite) TestArchiveEnvironmentCmd() {
3636
golden: "environment archive-environment was archived\n",
3737
},
3838
{
39-
wantError: true,
40-
name: "archiving non-existing environment fails",
41-
cmd: fmt.Sprintf(`archive environment non-existing %s`, suite.defaultKosliArguments),
42-
golden: "Error: Environment named 'non-existing' does not exist for organization 'docs-cmd-test-user'. \n",
39+
wantError: true,
40+
name: "archiving non-existing environment fails",
41+
cmd: fmt.Sprintf(`archive environment non-existing %s`, suite.defaultKosliArguments),
42+
goldenRegex: "^Error: Environment named 'non-existing' does not exist for organization 'docs-cmd-test-user'",
4343
},
4444
{
4545
wantError: true,

0 commit comments

Comments
 (0)