Browse code

integration/container: XFAIL flaky TestExecResize on Windows

This test is failing frequently (50%) on Windows;

=== FAIL: github.com/docker/docker/integration/container TestExecResize/success (0.01s)
exec_test.go:144: assertion failed: error is not nil: Error response from daemon: NotFound: exec: '9c19c467436132df24d8b606b0c462b1110dacfbbd13b63e5b42579eda76d7fc' in task: '7d1f371218285a0c653ae77024a1ab3f5d61a5d097c651ddf7df97364fafb454' not found: not found

Let's keep the test, but log the failure and skip on Windows.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/07/13 22:13:16
Showing 1 changed files
... ...
@@ -141,7 +141,14 @@ func TestExecResize(t *testing.T) {
141 141
 			Height: 40,
142 142
 			Width:  40,
143 143
 		})
144
+		if runtime.GOOS == "windows" && err != nil {
145
+			// FIXME(thaJeztah): temporarily allowing test to fail on Windows: see https://github.com/moby/moby/issues/50402
146
+			t.Log("XFAIL:", err)
147
+			t.Skip("XFAIL: flaky test on Windows: see https://github.com/moby/moby/issues/50402")
148
+			return
149
+		}
144 150
 		assert.NilError(t, err)
151
+
145 152
 		// TODO(thaJeztah): also check if the resize happened
146 153
 		//
147 154
 		// Note: container inspect shows the initial size that was