From 83b4dee349556ee48416fdc8f57067588fc897ad Mon Sep 17 00:00:00 2001 From: Steve Joachim Date: Thu, 15 Jul 2021 14:27:13 -0400 Subject: [PATCH] serialize client auth (#232) (#1198) --- tests/robustness/multiclient_test/framework/snapshotter.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/robustness/multiclient_test/framework/snapshotter.go b/tests/robustness/multiclient_test/framework/snapshotter.go index cabb5ef53..24a4b88bb 100644 --- a/tests/robustness/multiclient_test/framework/snapshotter.go +++ b/tests/robustness/multiclient_test/framework/snapshotter.go @@ -200,7 +200,11 @@ func (mcs *MultiClientSnapshotter) createOrGetSnapshotter(ctx context.Context) ( } // Register client with server and create connection - if err := mcs.server.AuthorizeClient(c.ID); err != nil { + mcs.mu.Lock() + err = mcs.server.AuthorizeClient(c.ID) + mcs.mu.Unlock() + + if err != nil { return nil, err }