mirror of
https://github.com/moby/buildkit.git
synced 2026-07-01 04:07:10 +00:00
Co-authored-by: Derek McGowan <derek@mcg.dev> Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
17 lines
509 B
Go
17 lines
509 B
Go
package containerdexecutor
|
|
|
|
import (
|
|
"testing"
|
|
|
|
ctd "github.com/containerd/containerd/v2/client"
|
|
gatewayapi "github.com/moby/buildkit/frontend/gateway/pb"
|
|
)
|
|
|
|
func TestContainerdUnknownExitStatus(t *testing.T) {
|
|
// There are assumptions in the containerd executor that the UnknownExitStatus
|
|
// used in errdefs.ExitError matches the variable in the containerd package.
|
|
if ctd.UnknownExitStatus != gatewayapi.UnknownExitStatus {
|
|
t.Fatalf("containerd.UnknownExitStatus != errdefs.UnknownExitStatus")
|
|
}
|
|
}
|