repair a test
The test tried to detect separate evaluations by using the result of `(current-inexact-milliseconds)`, but a clock's resolution might not be high enough. Use `(gensym)`, instead.
This commit is contained in:
parent
ae3b59475a
commit
1b9911c50b
|
@ -1171,7 +1171,7 @@
|
|||
(define-for-syntax ht (make-hash))
|
||||
(define-syntax (m stx)
|
||||
(or (hash-ref ht (syntax-local-lift-context) #f)
|
||||
(let ([id (syntax-local-lift-expression #`(quote #,(current-inexact-milliseconds)))])
|
||||
(let ([id (syntax-local-lift-expression #`(quote #,(gensym)))])
|
||||
(hash-set! ht (syntax-local-lift-context) id)
|
||||
id))))
|
||||
(dynamic-require ''example-that-uses-the-lift-context 0)
|
||||
|
@ -1187,7 +1187,7 @@
|
|||
(dynamic-require ''extra-module 0)
|
||||
(let ([ns (module->namespace ''extra-module)])
|
||||
(test (eval 'm ns) eval 'm ns)
|
||||
(test #f = (eval 'm) (eval 'm ns)))))])
|
||||
(test #f eq? (eval 'm) (eval 'm ns)))))])
|
||||
(go)
|
||||
(go)
|
||||
(go))
|
||||
|
|
Loading…
Reference in New Issue
Block a user