Prepare is a common integration test setup function which ensures isolation and prepares the runtime configuration for firecracker-containerd
(t testing.TB, options ...func(*config.Config))
| 23 | // Prepare is a common integration test setup function which ensures |
| 24 | // isolation and prepares the runtime configuration for firecracker-containerd |
| 25 | func Prepare(t testing.TB, options ...func(*config.Config)) { |
| 26 | t.Helper() |
| 27 | |
| 28 | internal.RequiresIsolation(t) |
| 29 | |
| 30 | err := writeRuntimeConfig(options...) |
| 31 | if err != nil { |
| 32 | t.Error(err) |
| 33 | } |
| 34 | } |