Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase timeout for all testcases in file_test.go #3887

Merged
merged 1 commit into from
Jan 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions pkg/kubelet/config/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestUpdateOnNonExistentFile(t *testing.T) {
t.Fatalf("Expected %#v, Got %#v", expected, update)
}

case <-time.After(2 * time.Millisecond):
case <-time.After(time.Second):
t.Errorf("Expected update, timeout instead")
}
}
Expand Down Expand Up @@ -165,7 +165,7 @@ func TestReadFromFile(t *testing.T) {
t.Fatalf("Expected %#v, Got %#v", expected, update)
}

case <-time.After(2 * time.Millisecond):
case <-time.After(time.Second):
t.Errorf("Expected update, timeout instead")
}
}
Expand Down Expand Up @@ -213,7 +213,7 @@ func TestReadFromFileWithoutID(t *testing.T) {
t.Fatalf("Expected %#v, Got %#v", expected, update)
}

case <-time.After(2 * time.Millisecond):
case <-time.After(time.Second):
t.Errorf("Expected update, timeout instead")
}
}
Expand Down Expand Up @@ -258,7 +258,7 @@ func TestReadV1Beta2FromFile(t *testing.T) {
t.Fatalf("Expected %#v, Got %#v", expected, update)
}

case <-time.After(2 * time.Millisecond):
case <-time.After(time.Second):
t.Errorf("Expected update, timeout instead")
}
}
Expand All @@ -281,7 +281,7 @@ func TestReadFromFileWithDefaults(t *testing.T) {
t.Errorf("Unexpected UID: %s", update.Pods[0].ObjectMeta.UID)
}

case <-time.After(2 * time.Millisecond):
case <-time.After(time.Second):
t.Errorf("Expected update, timeout instead")
}
}
Expand Down