Skip to content
  • Matthew Sykes's avatar
    [FAB-9134] Fix data race in DockerBuild · 19883c46
    Matthew Sykes authored
    
    
    A data race was detected when running TestGenerateDockerBuild. The race
    was due to concurrent read/write of a bytes buffer used to capture the
    streaming output of the chaincode build container.
    
    The race can be avoided by closing the CloseWaiter returned by the
    attach call and waiting for the stream processing to close before
    reading the output.
    
    Change-Id: If34bb11f2a263733147cf2262f25a3617c27e342
    Signed-off-by: default avatarMatthew Sykes <sykesmat@us.ibm.com>
    19883c46