1
0
mirror of https://github.com/lxc/go-lxc.git synced 2026-02-05 06:46:38 +01:00

lxc_test: Add delay for network configuration

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2024-06-06 13:49:02 -04:00
parent 555f57ca48
commit f0b282955a

View File

@@ -1406,6 +1406,9 @@ func TestIPv4Addresses(t *testing.T) {
}
defer c.Release()
// Wait for IP configuration.
time.Sleep(5 * time.Second)
if _, err := c.IPv4Addresses(); err != nil {
t.Errorf(err.Error())
}
@@ -1418,6 +1421,9 @@ func TestIPv6Addresses(t *testing.T) {
}
defer c.Release()
// Wait for IP configuration.
time.Sleep(5 * time.Second)
if _, err := c.IPv6Addresses(); err != nil {
t.Errorf(err.Error())
}