diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-10-24 16:35:29 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-24 16:36:54 -0700 |
commit | e8ba10c0085d404378ce649e018624b93cf4aa65 (patch) | |
tree | 4cbc5234e4accb9dbd3bf94a844b5b830d44092a /runsc/testutil/testutil.go | |
parent | e50a1f5739adc9bcb74456d365959ae718ff2197 (diff) |
Fix early deletion of rootDir
container.startContainers() cannot be called twice in a test
(e.g. TestMultiContainerLoadSandbox) because the cleanup
function deletes the rootDir, together with information from
all other containers that may exist.
PiperOrigin-RevId: 276591806
Diffstat (limited to 'runsc/testutil/testutil.go')
-rw-r--r-- | runsc/testutil/testutil.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/runsc/testutil/testutil.go b/runsc/testutil/testutil.go index 26467bdc7..9632776d2 100644 --- a/runsc/testutil/testutil.go +++ b/runsc/testutil/testutil.go @@ -151,13 +151,6 @@ func TestConfig() *boot.Config { } } -// TestConfigWithRoot returns the default configuration to use in tests. -func TestConfigWithRoot(rootDir string) *boot.Config { - conf := TestConfig() - conf.RootDir = rootDir - return conf -} - // NewSpecWithArgs creates a simple spec with the given args suitable for use // in tests. func NewSpecWithArgs(args ...string) *specs.Spec { |