moby/testutil
Brian Goff 2cf1c762f8
De-flake TestSwarmClusterRotateUnlockKey... again... maybe?
This hopefully makes the test less flakey (or removes any flake that
would be caused by the test itself).

1. Adds tail of cluster daemon logs when there is a test failure so we
   can more easily see what may be happening
2. Scans the daemon logs to check if the key is rotated before
   restarting the daemon. This is a little hacky but a little better
   than assuming it is done after a hard-coded 3 seconds.
3. Cleans up the `node ls` check such that it uses a poll function

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit fbdc02534a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-24 10:06:10 +01:00
..
daemon De-flake TestSwarmClusterRotateUnlockKey... again... maybe? 2024-01-24 10:06:10 +01:00
environment environment: Error when t.Parallel was called before Protect 2024-01-17 10:54:11 +01:00
fakecontext testutil: format code with gofumpt 2023-06-29 00:05:27 +02:00
fakegit refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
fakestorage api/types: move ContainerStartOptions to api/types/container 2023-10-12 11:29:24 +02:00
fixtures Wire up tests to support otel tracing 2023-09-07 18:38:22 +00:00
registry test: update registry version to latest 2023-08-24 12:08:32 +02:00
request Wire up tests to support otel tracing 2023-09-07 18:38:22 +00:00
doc.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
helper.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
helpers.go environment: Error when t.Parallel was called before Protect 2024-01-17 10:54:11 +01:00
stringutils.go gosec: G404: Use of weak random number generator 2021-06-10 13:03:18 +02:00
stringutils_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
temp_files.go Add testutil.TempDir function 2024-01-17 15:44:47 +01:00