File tree 3 files changed +20
-11
lines changed
3 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 3
3
4
4
(declare (unit megatest-version))
5
5
6
- (define megatest-version 1.5211 )
6
+ (define megatest-version 1.5212 )
7
7
Original file line number Diff line number Diff line change 3
3
(define (make-cached-writer the-db )
4
4
(let ((db the-db)
5
5
(queue '() ))
6
- (lambda (cacheable . qry-params )
6
+ (lambda (cacheable . qry-params ) ; ; fn qry
7
7
(if cacheable
8
- (set! queue (cons qry-params queue))
8
+ (begin
9
+ (set! queue (cons qry-params queue))
10
+ (call/cc))
9
11
(begin
10
12
(print " Starting transaction" )
11
13
(for-each
12
14
(lambda (queue-item )
13
- (print " WRITE to " db " : " queue-item))
15
+ (let ((fn (car queue-item))
16
+ (qry (cdr queue-item)))
17
+ (print " WRITE to " db " : " qry)
18
+ )
14
19
(reverse queue))
15
20
(print " End transaction" )
16
21
(print " READ from " db " : " qry-params))))))
17
22
18
- (define a (make-cached-writer " the db" ))
19
- (a #t " insert abc" )
20
- (a #t " insert def" )
21
- (a #t " insert hij" )
22
- (a #f " select foo" )
23
+ (define *cw* (make-cached-writer " the db" ))
24
+
25
+ (define (dbcall cacheable query )
26
+ (*cw* cacheable query))
27
+
28
+ (dbcall #t " insert abc" )
29
+ (dbcall #t " insert def" )
30
+ (dbcall #t " insert hij" )
31
+ (dbcall #f " select foo" )
Original file line number Diff line number Diff line change 122
122
(define *last-num-running-tests* 0 )
123
123
(define *runs:can-run-more-tests-delay* 0 )
124
124
(define (runs:shrink-can-run-more-tests-delay )
125
- (set! *runs:can-run-more-tests-delay* (/ *runs:can-run-more-tests-delay* 2 )))
125
+ (set! *runs:can-run-more-tests-delay* 0 )) ; ; (/ *runs:can-run-more-tests-delay* 2)))
126
126
127
127
(define (runs:can-run-more-tests test-record )
128
128
(thread-sleep! *runs:can-run-more-tests-delay*)
142
142
(if (and (> (+ num-running num-running-in-jobgroup) 0 )
143
143
(< *runs:can-run-more-tests-delay* 10 ))
144
144
(begin
145
- (set! *runs:can-run-more-tests-delay* (+ *runs:can-run-more-tests-delay* 0.1 ))
145
+ (set! *runs:can-run-more-tests-delay* (+ *runs:can-run-more-tests-delay* 1 )) ; ; 0.1))
146
146
(debug:print-info 14 " can-run-more-tests-delay: " *runs:can-run-more-tests-delay*)))
147
147
(if (not (eq? *last-num-running-tests* num-running))
148
148
(begin
You can’t perform that action at this time.
0 commit comments