runtimes/google/ipc/stream/vc: Fix vc_test flakiness.
I have noticed that vc_test is occasionally flaky. I think it is because
we panic in pipeloop, where the program may just happen to be when we close
VCs.
Making these just log instead of panic should fix the issue.
Change-Id: Idb7659f770ef821666d41d118aecd46baa784091
diff --git a/profiles/internal/ipc/stream/vc/vc_test.go b/profiles/internal/ipc/stream/vc/vc_test.go
index b247d58..71cca9c 100644
--- a/profiles/internal/ipc/stream/vc/vc_test.go
+++ b/profiles/internal/ipc/stream/vc/vc_test.go
@@ -16,6 +16,8 @@
"v.io/x/ref/lib/testutil"
tsecurity "v.io/x/ref/lib/testutil/security"
+
+ "v.io/x/ref/profiles/internal/ipc/stream"
"v.io/x/ref/profiles/internal/ipc/stream/id"
"v.io/x/ref/profiles/internal/ipc/stream/vc"
"v.io/x/ref/profiles/internal/lib/bqueue"
@@ -27,7 +29,7 @@
"v.io/v23/naming"
"v.io/v23/options"
"v.io/v23/security"
- "v.io/x/ref/profiles/internal/ipc/stream"
+ "v.io/x/lib/vlog"
)
var (
@@ -504,10 +506,10 @@
for _, b := range bufs {
cipher, err := h.VC.Encrypt(fid, b)
if err != nil {
- panic(err)
+ vlog.Infof("vc encrypt failed: %v", err)
}
if err := dst.DispatchPayload(fid, cipher); err != nil {
- panic(err)
+ vlog.Infof("dispatch payload failed: %v", err)
return
}
}