Skip to content

Commit

Permalink
added missing err check to scanner and new section logs integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Feb 19, 2021
1 parent 9aba32f commit 66ecadc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/minikube/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ func outputLastStart() error {
for s.Scan() {
out.Step(style.Empty, s.Text())
}
if err := s.Err(); err != nil {
return fmt.Errorf("failed to read file %s: %v", fp, err)
}
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ func validateLogsCmd(ctx context.Context, t *testing.T, profile string) {
if err != nil {
t.Errorf("%s failed: %v", rr.Command(), err)
}
expectedWords := []string{"apiserver", "Linux", "kubelet"}
expectedWords := []string{"apiserver", "Linux", "kubelet", "Last Start"}
switch ContainerRuntime() {
case "docker":
expectedWords = append(expectedWords, "Docker")
Expand Down

0 comments on commit 66ecadc

Please sign in to comment.