Skip to content

Commit cdabb28

Browse files
authored
fix(internal/librarian): use t.Fatal in tests for proper failure handling (#2759)
Use t.Fatal instead of log.Fatal in TestRun. Came across this when working on #2754.
1 parent 4dfae9a commit cdabb28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/librarian/librarian_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"context"
2020
"fmt"
2121
"io"
22-
"log"
2322
"log/slog"
2423
"math/rand"
2524
"os"
@@ -40,7 +39,7 @@ import (
4039

4140
func TestRun(t *testing.T) {
4241
if err := Run(t.Context(), []string{"version"}...); err != nil {
43-
log.Fatal(err)
42+
t.Fatal(err)
4443
}
4544
}
4645

0 commit comments

Comments
 (0)