Folks,

I’m coming close to writing unit tests for my “URL proxies from the
environment” code.

Following suggestions from Sam and Jay, I’m considering using a promise
to get and parse the environment variables... along the line of:

(define add-no-proxies-from-environment-promise
  (delay
    (define no-proxy-from-env
      (no-proxy-server-entry-from-environment "plt_no_proxy"
                                              "no_proxy"))
  ...))

And then, at some point, this promise is forced.

Are there any suggestions on how I can test based on one environment
setting, putenv some environment variables then test again?

I can do this out of a sandbox, but would this be a usual approach?

Tim

-- 
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                City Computing Limited · www.cityc.co.uk
      City House · Sutton Park Rd · Sutton · Surrey · SM1 2AE · GB
                T:+44 20 8770 2110 · F:+44 20 8770 2130
────────────────────────────────────────────────────────────────────────
City Computing Limited registered in London No:1767817.
Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
VAT No: GB 918 4680 96

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to