mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-22 16:54:25 +01:00
virtcontainers: fix unit tests
Use noopAgent in unit tests to add online fake resources. Fix unit tests according with new changes introduced recently. fixes #192 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -1726,7 +1726,7 @@ func TestEnterContainerFailingContNotStarted(t *testing.T) {
|
||||
cmd := newBasicTestCmd()
|
||||
|
||||
_, c, _, err = EnterContainer(p.ID(), contID, cmd)
|
||||
if c != nil || err == nil {
|
||||
if c == nil || err != nil {
|
||||
t.Fatal()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user