Skip to content

Commit

Permalink
fix routing ut
Browse files Browse the repository at this point in the history
  • Loading branch information
greedy52 committed Jan 10, 2025
1 parent 83686c6 commit 58ca650
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/proxy/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func TestGetServers(t *testing.T) {
{
name: "git server",
site: testSite{cfg: &unambiguousCfg, gitServers: gitServers},
host: "org2.github-org",
host: "org2.teleport-github-org",
errAssertion: require.NoError,
serverAssertion: func(t *testing.T, srv types.Server) {
require.NotNil(t, srv)
Expand All @@ -520,7 +520,7 @@ func TestGetServers(t *testing.T) {
{
name: "git server not found",
site: testSite{cfg: &unambiguousCfg, gitServers: gitServers},
host: "org-not-found.github-org",
host: "org-not-found.teleport-github-org",
errAssertion: func(t require.TestingT, err error, i ...interface{}) {
require.True(t, trace.IsNotFound(err), i...)
},
Expand Down
8 changes: 4 additions & 4 deletions tool/tsh/common/git_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ func TestGitListCommand(t *testing.T) {
},
containsOutput: []string{
`"kind": "git_server"`,
`"hostname": "org1.github-org"`,
`"hostname": "org2.github-org"`,
`"hostname": "org1.teleport-github-org"`,
`"hostname": "org2.teleport-github-org"`,
},
},
{
Expand All @@ -110,8 +110,8 @@ func TestGitListCommand(t *testing.T) {
},
containsOutput: []string{
"- kind: git_server",
"hostname: org1.github-org",
"hostname: org2.github-org",
"hostname: org1.teleport-github-org",
"hostname: org2.teleport-github-org",
},
},
}
Expand Down

0 comments on commit 58ca650

Please sign in to comment.