(ctx context.Context, tsc testgrpc.TestServiceClient, want *status.Status)
| 546 | } |
| 547 | |
| 548 | func retryUntil(ctx context.Context, tsc testgrpc.TestServiceClient, want *status.Status) (lastErr error) { |
| 549 | for ctx.Err() == nil { |
| 550 | _, lastErr = tsc.UnaryCall(ctx, &testpb.SimpleRequest{}) |
| 551 | if s := status.Convert(lastErr); s.Code() == want.Code() && s.Message() == want.Message() { |
| 552 | return nil |
| 553 | } |
| 554 | time.Sleep(20 * time.Millisecond) |
| 555 | } |
| 556 | return lastErr |
| 557 | } |
| 558 | |
| 559 | func (s) TestFileWatcher_ValidPolicyRefresh(t *testing.T) { |
| 560 | valid1 := authzTests["DeniesRPCMatchInDenyAndAllow"] |
no test coverage detected