Fix the tests hanging on the open channel.

This commit is contained in:
2024-11-06 11:32:36 +00:00
parent 78b9d611f0
commit 6f2cf65d49
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -95,8 +95,9 @@ func (ts *TestSuite) Setup() {
httpClient: &http.Client{},
exchangeCodeForTokenFunc: ts.exchangeCodeForTokenFunc,
extractClaimsFunc: extractClaims,
initComplete: make(chan struct{}),
}
close(ts.tOidc.initComplete)
ts.tOidc.tokenVerifier = ts.tOidc
ts.tOidc.jwtVerifier = ts.tOidc
}