rados: naming conventions: fixes in test function TestGetClusterStats
Fix up variable names that don't meet Go standards.
@@ -247,8 +247,8 @@ func (suite *RadosTestSuite) TestGetClusterStats() {
suite.SetupConnection()
// grab current stats
- prev_stat, err := suite.conn.GetClusterStats()
- fmt.Printf("prev_stat: %+v\n", prev_stat)
+ prevStat, err := suite.conn.GetClusterStats()
+ fmt.Printf("prevStat: %+v\n", prevStat)
assert.NoError(suite.T(), err)
// make some changes to the cluster
@@ -265,7 +265,7 @@ func (suite *RadosTestSuite) TestGetClusterStats() {
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 {
