Skip to content

Commit

Permalink
tenantcapabilitiestestutils: add a missing default case
Browse files Browse the repository at this point in the history
The test should fail if we ever add a new type of capability and use it in the
data driven test but don't update the test to handle it.

Epic: none

Follow-up from #100217 (review)

Release note: None
  • Loading branch information
ajwerner committed Mar 31, 2023
1 parent 27c7beb commit 5f27fa0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ func ParseTenantCapabilityUpsert(
return roachpb.TenantID{}, nil, err
}
c.Value(&caps).Set(spanconfigbounds.New(&v))
default:
t.Fatalf("unknown capability type %T for capability %s", c, arg.Key)
}
}
return tID, &caps, nil
Expand Down

0 comments on commit 5f27fa0

Please sign in to comment.