Add TODOs for failing tests

This commit is contained in:
William Tisäter 2014-05-09 11:38:29 +02:00
parent e749e2ebc9
commit 2f23eb42ea
5 changed files with 12 additions and 0 deletions

View File

@ -175,6 +175,7 @@ func TestCatalogNodes_Blocking(t *testing.T) {
// Should block for a while
if time.Now().Sub(start) < 50 * time.Millisecond {
// TODO: Failing
t.Fatalf("too fast")
}

View File

@ -28,6 +28,8 @@ func TestHealthChecksInState(t *testing.T) {
if err != nil {
t.Fatalf("err: %v", err)
}
// TODO: Failing
assertIndex(t, resp)
// Should be 1 health check for the server
@ -105,6 +107,7 @@ func TestHealthServiceChecks(t *testing.T) {
// Should be 1 health check for consul
nodes := obj.(structs.HealthChecks)
if len(nodes) != 1 {
// TODO: Failing
t.Fatalf("bad: %v", obj)
}
}
@ -127,6 +130,8 @@ func TestHealthServiceNodes(t *testing.T) {
if err != nil {
t.Fatalf("err: %v", err)
}
// TODO: Failing
assertIndex(t, resp)
// Should be 1 health check for consul
@ -172,6 +177,8 @@ func TestHealthServiceNodes_PassingFilter(t *testing.T) {
if err != nil {
t.Fatalf("err: %v", err)
}
// TODO: Failing
assertIndex(t, resp)
// Should be 0 health check for consul

View File

@ -243,6 +243,7 @@ OUTER1:
}
}
if !found {
// TODO: Failing
t.Fatalf("should log client accept")
}

View File

@ -100,6 +100,8 @@ func TestUiNodeInfo(t *testing.T) {
if err != nil {
t.Fatalf("err: %v", err)
}
// TODO: Failing
assertIndex(t, resp)
// Should be 1 node for the server

View File

@ -540,6 +540,7 @@ func TestCatalogListServices_Timeout(t *testing.T) {
// Should block at least 100ms
if time.Now().Sub(start) < 100 * time.Millisecond {
// TODO: Failing
t.Fatalf("too fast")
}