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:
Lasse Dalegaard 2017-09-26 09:10:50 +02:00
parent 2d307d5beb
commit 55a2e60e1a
1 changed files with 3 additions and 0 deletions

View File

@ -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() {