mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-04 17:16:50 +02:00
refactor(core): reduce generated and duplicate code
This commit is contained in:
@@ -118,16 +118,11 @@ func TestLifecycleTimeoutQuarantinesUnresponsiveCleanupVM(t *testing.T) {
|
||||
|
||||
func TestSignedSessionGrantRetryHonorsCancellationAndReleasesCoordinator(t *testing.T) {
|
||||
previousWait := signedSessionRetryWaitContext
|
||||
previousLegacyWait := signedSessionRetryWait
|
||||
signedSessionRetryWait = nil
|
||||
signedSessionRetryWaitContext = func(ctx context.Context, _ time.Duration) error {
|
||||
<-ctx.Done()
|
||||
return ctx.Err()
|
||||
}
|
||||
t.Cleanup(func() {
|
||||
signedSessionRetryWait = previousLegacyWait
|
||||
signedSessionRetryWaitContext = previousWait
|
||||
})
|
||||
t.Cleanup(func() { signedSessionRetryWaitContext = previousWait })
|
||||
|
||||
var calls atomic.Int32
|
||||
transport := roundTripFunc(func(req *http.Request) (*http.Response, error) {
|
||||
|
||||
Reference in New Issue
Block a user