mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-05 07:27:03 +08:00
libct: remove Factory interface
The only implementation is LinuxFactory, let's use this directly. Move the piece of documentation about Create from removed factory.go to the factory_linux.go. The LinuxFactory is to be removed later. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -21,16 +21,8 @@ func TestFactoryNew(t *testing.T) {
|
||||
if factory == nil {
|
||||
t.Fatal("factory should not be nil")
|
||||
}
|
||||
lfactory, ok := factory.(*LinuxFactory)
|
||||
if !ok {
|
||||
t.Fatal("expected linux factory returned on linux based systems")
|
||||
}
|
||||
if lfactory.Root != root {
|
||||
t.Fatalf("expected factory root to be %q but received %q", root, lfactory.Root)
|
||||
}
|
||||
|
||||
if factory.Type() != "libcontainer" {
|
||||
t.Fatalf("unexpected factory type: %q, expected %q", factory.Type(), "libcontainer")
|
||||
if factory.Root != root {
|
||||
t.Fatalf("expected factory root to be %q but received %q", root, factory.Root)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user