(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestSubscription(t *testing.T) { |
| 13 | a := require.New(t) |
| 14 | ctx := context.Background() |
| 15 | ctl := &controller{} |
| 16 | ctx, err := ctl.StartServerWithExternalPg(ctx) |
| 17 | a.NoError(err) |
| 18 | defer ctl.Close(ctx) |
| 19 | |
| 20 | err = ctl.removeLicense(ctx) |
| 21 | a.NoError(err) |
| 22 | subscription, err := ctl.getSubscription(ctx) |
| 23 | a.NoError(err) |
| 24 | a.Equal(v1pb.PlanType_FREE, subscription.Plan) |
| 25 | } |
nothing calls this directly
no test coverage detected