Skip to content

Commit 1a44d29

Browse files
committed
test: Update TestWorkspace_extraArgError to account for new validation via the arguments package
1 parent 74c2343 commit 1a44d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/command/workspace_command_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,8 +1147,8 @@ func TestWorkspace_extraArgError(t *testing.T) {
11471147
if code := listCmd.Run(args); code != 1 {
11481148
t.Fatalf("bad: %d\n\n%s", code, ui.ErrorWriter)
11491149
}
1150-
expectedError = "Too many command line arguments. Did you mean to use -chdir?\n"
1151-
if ui.ErrorWriter.String() != expectedError {
1150+
expectedError = "Error: Too many command line arguments\n\nExpected no positional arguments."
1151+
if !strings.Contains(ui.ErrorWriter.String(), expectedError) {
11521152
t.Fatalf("expected error to include \"%s\" but was missing, got: %s", expectedError, ui.ErrorWriter.String())
11531153
}
11541154

0 commit comments

Comments
 (0)