From e89a709f21522211e1a4055d1067c9fd9fe7040f Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Thu, 27 Nov 2014 16:36:01 -0800 Subject: [PATCH] test: display stat changes Signed-off-by: Noah Watkins --- rados_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rados_test.go b/rados_test.go index 964c2b7..bb1c14f 100644 --- a/rados_test.go +++ b/rados_test.go @@ -87,6 +87,7 @@ func TestGetClusterStats(t *testing.T) { // grab current stats prev_stat, err := conn.GetClusterStats() + fmt.Printf("prev_stat: %+v\n", prev_stat) assert.NoError(t, err) // make some changes to the cluster @@ -103,10 +104,11 @@ func TestGetClusterStats(t *testing.T) { // wait for something to change if stat == prev_stat { - fmt.Println("waiting for cluster stats to refresh") + fmt.Printf("curr_stat: %+v (trying again...)\n", stat) time.Sleep(time.Second) } else { // success + fmt.Printf("curr_stat: %+v (change detected)\n", stat) conn.Shutdown() return }