(t testing.TB)
| 45 | } |
| 46 | |
| 47 | func testContext(t testing.TB) (context.Context, context.CancelFunc) { |
| 48 | // This needs work to convert from context.Background() to t.Context(). |
| 49 | ctx, cancel := context.WithCancel(context.Background()) //nolint:all |
| 50 | ctx = namespaces.WithNamespace(ctx, testNamespace) |
| 51 | if t != nil { |
| 52 | ctx = logtest.WithT(ctx, t) |
| 53 | } |
| 54 | return ctx, cancel |
| 55 | } |
| 56 | |
| 57 | func createShimDebugConfig() string { |
| 58 | f, err := os.CreateTemp("", "containerd-config-") |
searching dependent graphs…