Skip to content

Commit

Permalink
feat(main): 修改单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
BadKid90s committed Jan 30, 2024
1 parent e18e5ed commit 6b45763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knife/middleware/load_balance_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestLoadBalanceProxyHash(t *testing.T) {

addr := "127.0.0.1:8080"
targetUrl1 := lb.hash(addr)
targetUrl2 := lb.hash("addr")
targetUrl2 := lb.hash(addr)
targetUrl3 := lb.hash(addr)
msg := "compute hash value no the same"
assert.Equal(t, targetUrl1, targetUrl2, msg)
Expand Down

0 comments on commit 6b45763

Please sign in to comment.