mirror of https://github.com/ceph/go-ceph
rados: naming conventions: fixes in test function TestGetClusterStats
Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
9d7d31d158
commit
e3196e45e0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue