MCPcopy Create free account
hub / github.com/dagger/dagger / TestExecSync

Method TestExecSync

core/integration/container_test.go:175–198  ·  view source on GitHub ↗
(ctx context.Context, t *testctx.T)

Source from the content-addressed store, hash-verified

173}
174
175func (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
200func (ContainerSuite) TestError(ctx context.Context, t *testctx.T) {
201 for _, tc := range []struct {

Callers

nothing calls this directly

Calls 2

QueryFunction · 0.92
requireErrOutFunction · 0.85

Tested by

no test coverage detected