Skip to content
Snippets Groups Projects
Commit 2d55bcfd authored by Oliver's avatar Oliver
Browse files

log body

parent b60ce381
No related branches found
No related tags found
No related merge requests found
Loading
@@ -1262,6 +1262,7 @@ func TestClusterMaster(t *testing.T) {
Loading
@@ -1262,6 +1262,7 @@ func TestClusterMaster(t *testing.T) {
}() }()
   
body := downloadUrl(t, ts.URL+"/metrics") body := downloadUrl(t, ts.URL+"/metrics")
log.Printf("body: %s", body)
if !bytes.Contains(body, []byte("test_instance_info")) { if !bytes.Contains(body, []byte("test_instance_info")) {
t.Errorf("Did not found key %q\n%s", keys[0], body) t.Errorf("Did not found key %q\n%s", keys[0], body)
} }
Loading
@@ -1380,7 +1381,6 @@ func TestClusterSlave(t *testing.T) {
Loading
@@ -1380,7 +1381,6 @@ func TestClusterSlave(t *testing.T) {
   
setupDBKeys(t, defaultRedisHost.Addrs[0]) setupDBKeys(t, defaultRedisHost.Addrs[0])
defer deleteKeysFromDB(t, defaultRedisHost.Addrs[0]) defer deleteKeysFromDB(t, defaultRedisHost.Addrs[0])
prometheus.Register(e) prometheus.Register(e)
   
chM := make(chan prometheus.Metric, 10000) chM := make(chan prometheus.Metric, 10000)
Loading
@@ -1390,6 +1390,7 @@ func TestClusterSlave(t *testing.T) {
Loading
@@ -1390,6 +1390,7 @@ func TestClusterSlave(t *testing.T) {
}() }()
   
body := downloadUrl(t, ts.URL+"/metrics") body := downloadUrl(t, ts.URL+"/metrics")
log.Printf("body: %s", body)
if !bytes.Contains(body, []byte("test_instance_info")) { if !bytes.Contains(body, []byte("test_instance_info")) {
t.Errorf("Did not found key %q\n%s", keys[0], body) t.Errorf("Did not found key %q\n%s", keys[0], body)
} }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment