interop-testing: fix alts handshaking race (#7896)

This commit is contained in:
yifeizhuang 2021-02-12 09:50:49 -08:00 committed by GitHub
parent 8030c3a11d
commit 0d2ea9365a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class AltsHandshakerTestService extends HandshakerServiceImplBase {
@Override
public void onNext(HandshakerReq value) {
log.log(Level.FINE, "request received: " + value);
synchronized (this) {
synchronized (AltsHandshakerTestService.this) {
switch (expectState) {
case CLIENT_INIT:
checkState(CLIENT_START.equals(value.getReqOneofCase()));