Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52cdef4

Browse files
committed
fixup! whoami -> get_authenticated-user
1 parent ae06274 commit 52cdef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/exp_mcp_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestExpMcpServer(t *testing.T) {
3939
_ = coderdtest.CreateFirstUser(t, client)
4040

4141
// Given: we run the exp mcp command with allowed tools set
42-
inv, root := clitest.New(t, "exp", "mcp", "server", "--allowed-tools=coder_whoami")
42+
inv, root := clitest.New(t, "exp", "mcp", "server", "--allowed-tools=coder_get_authenticated_user")
4343
inv = inv.WithContext(cancelCtx)
4444

4545
pty := ptytest.New(t)
@@ -80,7 +80,7 @@ func TestExpMcpServer(t *testing.T) {
8080
foundTools = append(foundTools, tool.Name)
8181
}
8282
slices.Sort(foundTools)
83-
require.Equal(t, []string{"coder_whoami"}, foundTools)
83+
require.Equal(t, []string{"coder_get_authenticated_user"}, foundTools)
8484
})
8585

8686
t.Run("OK", func(t *testing.T) {

0 commit comments

Comments
 (0)