moby/integration/system
Sebastiaan van Stijn 4b0d38de06
TestDiskUsage: don't panic if results don't match
This test is currently failing with containerd-integration, which should
be looked into, but let's start with preventing it from panicking, to make
the test-failures less noisy;

        --- FAIL: TestDiskUsage/after_container.Run (0.26s)
    panic: runtime error: index out of range [0] with length 0 [recovered]
        panic: runtime error: index out of range [0] with length 0

    goroutine 280 [running]:
    testing.tRunner.func1.2({0xb07a00, 0x40002006a8})
        /usr/local/go/src/testing/testing.go:1526 +0x1c8
    testing.tRunner.func1()
        /usr/local/go/src/testing/testing.go:1529 +0x364
    panic({0xb07a00, 0x40002006a8})
        /usr/local/go/src/runtime/panic.go:884 +0x1f4
    github.com/docker/docker/integration/system.TestDiskUsage.func3(0x0?, {0x0, {0x14ea4a8, 0x0, 0x0}, {0x14ea4a8, 0x0, 0x0}, {0x14ea4a8, 0x0, ...}, ...})
        /go/src/github.com/docker/docker/integration/system/disk_usage_test.go:82 +0x7e4
    github.com/docker/docker/integration/system.TestDiskUsage.func4(0x4000235c80?)
        /go/src/github.com/docker/docker/integration/system/disk_usage_test.go:118 +0x8c

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-08-23 19:15:21 +02:00
..
cgroupdriver_systemd_test.go gofmt GoDoc comments with go1.19 2022-07-08 19:56:23 +02:00
disk_usage_test.go TestDiskUsage: don't panic if results don't match 2023-08-23 19:15:21 +02:00
event_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
info_linux_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
info_test.go integration/system: format code with gofumpt 2023-06-29 00:31:11 +02:00
login_test.go testutil, integration: use types/registry.AuthConfig 2022-07-29 23:05:21 +02:00
main_test.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
ping_test.go integration/system: format code with gofumpt 2023-06-29 00:31:11 +02:00
version_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00