cancelAndRestore cancels the bridge and waits for goroutines to drain before restoring the global manager.
(b *Bridge, origGlobal *sessions.Manager)
| 14 | // cancelAndRestore cancels the bridge and waits for goroutines to drain |
| 15 | // before restoring the global manager. |
| 16 | func cancelAndRestore(b *Bridge, origGlobal *sessions.Manager) { |
| 17 | b.cancel() |
| 18 | time.Sleep(100 * time.Millisecond) // let goroutines react to cancel |
| 19 | swapGlobalManager(origGlobal) |
| 20 | } |
| 21 | |
| 22 | func TestE2E_Checkin_SessionMetadata(t *testing.T) { |
| 23 | srv, rpcClient, cleanup := startTestServer(t) |
no test coverage detected