فهرست منبع

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

Adjust TestDockerCmdWithTimeout timeout to improve reliability
Alexander Morozov 9 سال پیش
والد
کامیت
4e6bea5964
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      pkg/integration/dockerCmd_utils_test.go

+ 1 - 1
pkg/integration/dockerCmd_utils_test.go

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