Files
Matthieu MOREL 5a96f64d01 Refactor error handling to use errors.New for consistency
- 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>
2026-08-07 10:13:54 +02:00

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")
}
}