mirror of
https://github.com/moby/buildkit.git
synced 2026-10-29 00:54:40 +08:00
- Updated multiple instances across various files to replace errors.Errorf with errors.New for error message creation. - This change enhances consistency in error handling throughout the codebase. Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
17 lines
508 B
Go
17 lines
508 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.Fatal("containerd.UnknownExitStatus != errdefs.UnknownExitStatus")
|
|
}
|
|
}
|