Skip to content

Commit

Permalink
Use t.Fatal instead of t.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
apstndb committed Sep 23, 2020
1 parent 876f838 commit a05abe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query_plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ func TestRenderTreeUsingTestdataPlans(t *testing.T) {
t.Run(test.title, func(t *testing.T) {
b, err := ioutil.ReadFile(test.file)
if err != nil {
t.Error(err)
t.Fatal(err)
}
var plan pb.QueryPlan
err = protojson.Unmarshal(b, &plan)
if err != nil {
t.Error(err)
t.Fatal(err)
}
tree := BuildQueryPlanTree(&plan, 0)
got, err := tree.RenderTreeWithStats(plan.GetPlanNodes())
Expand Down

0 comments on commit a05abe8

Please sign in to comment.