Skip to content

Commit 41c19ca

Browse files
alnrclaude
andcommitted
chore: restore prefix-matching coverage in GetProject test
Use an 8-char slug prefix so the test exercises prefix lookup while staying unique within the fresh test account. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 521624e commit 41c19ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/cloudx/client/command_helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func TestCommandHelper(t *testing.T) {
372372
assert.Equal(t, tc.project.Id, actual.Id)
373373
assertValidProject(t, tc.project)
374374

375-
actual, err = authenticated.GetProject(ctx, tc.project.Slug[:len(tc.project.Slug)-1], tc.project.WorkspaceId.Get())
375+
actual, err = authenticated.GetProject(ctx, tc.project.Slug[:8], tc.project.WorkspaceId.Get())
376376
require.NoError(t, err)
377377
assert.Equal(t, tc.project.Id, actual.Id)
378378
})

0 commit comments

Comments
 (0)