(ctx context.Context, t *testctx.T)
| 173 | } |
| 174 | |
| 175 | func (ContainerSuite) TestExecSync(ctx context.Context, t *testctx.T) { |
| 176 | // A successful sync doesn't prove anything. As soon as you call other |
| 177 | // leaves to check things, they could be the ones triggering execution. |
| 178 | // Still, sync can be useful for short-circuiting. |
| 179 | _, err := testutil.Query[struct { |
| 180 | Container struct { |
| 181 | From struct { |
| 182 | WithExec struct { |
| 183 | Sync string |
| 184 | } |
| 185 | } |
| 186 | } |
| 187 | }](t, |
| 188 | `{ |
| 189 | container { |
| 190 | from(address: "`+alpineImage+`") { |
| 191 | withExec(args: ["false"]) { |
| 192 | sync |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | }`, nil) |
| 197 | requireErrOut(t, err, "exit code: 1") |
| 198 | } |
| 199 | |
| 200 | func (ContainerSuite) TestError(ctx context.Context, t *testctx.T) { |
| 201 | for _, tc := range []struct { |
nothing calls this directly
no test coverage detected