fix(dev): preserve background build errors

This commit is contained in:
Thomas Camlong committed 2026-08-02 08:26:56 +02:00
1 parent ca7e50fb96
commit ae2a1df453
2 files changed
+37 -5

No files matched your search

+9 -1
View File
@@ -137,12 +137,20 @@ func TestPRImageCheckInProgressDoesNotLaunch(t *testing.T) {
}
func TestPullErrorIncludesLastDockerMessage(t *testing.T) {
err := pullCommandError(errors.New("exit status 1"), "manifest unknown")
err := commandErrorWithDetail(errors.New("exit status 1"), "manifest unknown")
if !strings.Contains(err.Error(), "manifest unknown") {
t.Fatalf("pull error = %v", err)
}
}
func TestOutputTailRetainsBuildFailure(t *testing.T) {
tail := &outputTail{}
_, _ = tail.Write([]byte("building\r\nERROR: Dockerfile not found\n"))
if got := tail.lastLine(); got != "ERROR: Dockerfile not found" {
t.Fatalf("last line = %q", got)
}
}
func TestDevTableRendersLocalImageSource(t *testing.T) {
m := newPRsModel()
m.rows = []prRow{{