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:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user