Skip to content

Commit

Permalink
Correct test grpc response
Browse files Browse the repository at this point in the history
The execute service in retryUploadAndExecuteOnMissingInputs should not
complete the same handled request multiple times.

Closes #7384.

PiperOrigin-RevId: 236084104
  • Loading branch information
George Gensure authored and copybara-github committed Feb 28, 2019
1 parent 046d253 commit c210d2f
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1177,15 +1177,16 @@ public void execute(ExecuteRequest request, StreamObserver<Operation> responseOb
.setResponse(Any.pack(ExecuteResponse.newBuilder().setStatus(status).build()))
.build());
responseObserver.onCompleted();
} else {
assertThat(request.getSkipCacheLookup()).isFalse();
responseObserver.onNext(
Operation.newBuilder()
.setDone(true)
.setResponse(
Any.pack(ExecuteResponse.newBuilder().setResult(actionResult).build()))
.build());
responseObserver.onCompleted();
}
assertThat(request.getSkipCacheLookup()).isFalse();
responseObserver.onNext(
Operation.newBuilder()
.setDone(true)
.setResponse(
Any.pack(ExecuteResponse.newBuilder().setResult(actionResult).build()))
.build());
responseObserver.onCompleted();
}
});
AtomicInteger numCacheUploads = new AtomicInteger();
Expand Down

0 comments on commit c210d2f

Please sign in to comment.