refactor(core): reduce generated and duplicate code

This commit is contained in:
zarzet
2026-08-30 11:57:47 +07:00
parent 7141ca980f
commit e931d5e2b0
23 changed files with 18 additions and 73100 deletions
@@ -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) {