rados: naming conventions: fixes in test function TestGetPoolStats

Fix up variable names that don't meet Go standards.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-07-26 13:25:48 -04:00 committed by mergify[bot]
parent a15c91d711
commit ef031dddcf

View File

@ -579,8 +579,8 @@ func (suite *RadosTestSuite) TestGetPoolStats() {
suite.SetupConnection()
// grab current stats
prev_stat, err := suite.ioctx.GetPoolStats()
fmt.Printf("prev_stat: %+v\n", prev_stat)
prevStat, err := suite.ioctx.GetPoolStats()
fmt.Printf("prevStat: %+v\n", prevStat)
assert.NoError(suite.T(), err)
// make some changes to the cluster
@ -597,7 +597,7 @@ func (suite *RadosTestSuite) TestGetPoolStats() {
assert.NoError(suite.T(), err)
// wait for something to change
if stat == prev_stat {
if stat == prevStat {
fmt.Printf("curr_stat: %+v (trying again...)\n", stat)
time.Sleep(time.Second)
} else {