Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Jul 13, 2022
1 parent e94ff86 commit 9d4d794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestNormalSessionPool(t *testing.T) {
conf := config.GetGlobalConfig()
conf.Socket = ""
conf.Host = "127.0.0.1"
conf.Port = 0
conf.Port = 4001
conf.Socket = strings.Replace(conf.Socket, "{Port}", fmt.Sprintf("%d", uint(4000+rand.Intn(1000))), 1)
svr, err := server.NewServer(conf, nil)
require.NoError(t, err)
Expand Down Expand Up @@ -116,7 +116,7 @@ func TestAbnormalSessionPool(t *testing.T) {
conf := config.GetGlobalConfig()
conf.Socket = ""
conf.Host = "127.0.0.1"
conf.Port = 0
conf.Port = 4000
svr, err := server.NewServer(conf, nil)
require.NoError(t, err)
svr.SetDomain(domain)
Expand Down

0 comments on commit 9d4d794

Please sign in to comment.