Test for rkt driver setting DriverNetwork
To test that the rkt driver correctly sets a DriverNetwork, at least when a port mapping is requested, we amend the TestRktDriver_PortsMapping test with a small check.
This commit is contained in:
parent
2d307d5beb
commit
55a2e60e1a
|
@ -484,6 +484,9 @@ func TestRktDriver_PortsMapping(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
if resp.Network == nil {
|
||||
t.Fatalf("Expected driver to set a DriverNetwork, but it did not!")
|
||||
}
|
||||
|
||||
failCh := make(chan error, 1)
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue