Fix potential race condition during event subscription (#993)

This commit is contained in:
Keith Zantow
2022-05-11 18:35:55 -04:00
committed by GitHub
parent 24f08e7738
commit 91e2fd8532
6 changed files with 80 additions and 34 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ func assertVerifyAttestation(coverageImage string) traitAssertion {
coverageImage, // TODO which remote image to use?
)
stdout, stderr := runCommand(attachCmd, nil)
stdout, stderr, _ := runCommand(attachCmd, nil)
if attachCmd.ProcessState.ExitCode() != 0 {
tb.Log("STDOUT", stdout)
tb.Log("STDERR", stderr)
@@ -165,7 +165,7 @@ func assertVerifyAttestation(coverageImage string) traitAssertion {
coverageImage, // TODO which remote image to use?
)
stdout, stderr = runCommand(verifyCmd, nil)
stdout, stderr, _ = runCommand(verifyCmd, nil)
if attachCmd.ProcessState.ExitCode() != 0 {
tb.Log("STDOUT", stdout)
tb.Log("STDERR", stderr)