Merge pull request #18411 from aaronlehmann/unit-test-timing

Adjust TestDockerCmdWithTimeout timeout to improve reliability
This commit is contained in:
Alexander Morozov 2015-12-03 16:34:36 -08:00
Родитель 2856a30482 13d768b8ee
Коммит 4e6bea5964
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -387,7 +387,7 @@ func TestHelperProcess(t *testing.T) {
fmt.Fprintf(os.Stderr, "an error has occurred")
os.Exit(1)
case "a command that times out":
time.Sleep(10 * time.Millisecond)
time.Sleep(10 * time.Second)
fmt.Fprintf(os.Stdout, "too long, should be killed")
// A random exit code (that should never happened in tests)
os.Exit(7)