Skip to content
Snippets Groups Projects
Commit 293a3b73 authored by Oliver's avatar Oliver
Browse files

omg

parent cac03184
No related branches found
No related tags found
No related merge requests found
Loading
@@ -1265,7 +1265,7 @@ func TestClusterMaster(t *testing.T) {
Loading
@@ -1265,7 +1265,7 @@ func TestClusterMaster(t *testing.T) {
   
body := downloadUrl(t, ts.URL+"/metrics") body := downloadUrl(t, ts.URL+"/metrics")
log.Printf("master - body: %s", body) log.Printf("master - body: %s", body)
for _, want := range []string{"test_instance_info", "test_master_repl_offset"} { for _, want := range []string{"test_instance_info", "test_master_repl_offset", "test_master_last_io_seconds"} {
if !strings.Contains(body, want) { if !strings.Contains(body, want) {
t.Errorf("Did not find key [%s] \nbody: %s", want, body) t.Errorf("Did not find key [%s] \nbody: %s", want, body)
} }
Loading
@@ -1404,8 +1404,10 @@ func TestClusterSlave(t *testing.T) {
Loading
@@ -1404,8 +1404,10 @@ func TestClusterSlave(t *testing.T) {
   
body := downloadUrl(t, ts.URL+"/metrics") body := downloadUrl(t, ts.URL+"/metrics")
log.Printf("slave - body: %s", body) log.Printf("slave - body: %s", body)
if !strings.Contains(body, "test_instance_info") { for _, want := range []string{"test_instance_info", "test_slave_info"} {
t.Errorf("Did not found key %q\n%s", keys[0], body) if !strings.Contains(body, want) {
t.Errorf("Did not find key [%s] \nbody: %s", want, 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