Skip to content

Commit

Permalink
test - proxysql pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Strappazzon C committed Jan 30, 2024
1 parent 6f8d874 commit 0f04ee1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proxysql/stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestStatsConnectionPoolFetcher(t *testing.T) {
MaxConnections: uint16(100),
MaxReplicationLag: uint16(60),
Port: uint16(3307),
Status: proxysql.ONLINE,
Status: proxysql.OFFLINE_SOFT,
Weight: uint16(1),
})
p.Servers.First().Insert()
Expand All @@ -29,7 +29,10 @@ func TestStatsConnectionPoolFetcher(t *testing.T) {

assert.Equal(t, p.Stats.ConnectionPool.HostgroupID, uint8(10))
assert.Equal(t, p.Stats.ConnectionPool.Hostname, "127.0.0.1")
assert.Equal(t, p.Stats.ConnectionPool.MaxConnections, uint16(100))
assert.Equal(t, p.Stats.ConnectionPool.Port, uint16(3307))
assert.Equal(t, p.Stats.ConnectionPool.Status, proxysql.OFFLINE_SOFT)
assert.Equal(t, p.Stats.ConnectionPool.Weight, uint16(1))

p.Servers.First().Delete()
p.ServersLoadToRunTime()
Expand Down

0 comments on commit 0f04ee1

Please sign in to comment.