unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
blob 224cb068b9151e413a37a7fb2ee152fad58a6a38 348 bytes (raw)
name: t/oob_gc.ru 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
#\-E none
require 'unicorn/oob_gc'
use Rack::ContentLength
use Rack::ContentType, "text/plain"
use Unicorn::OobGC
$gc_started = false

# Mock GC.start
def GC.start
  $gc_started = true
end
run lambda { |env|
  if "/gc_reset" == env["PATH_INFO"] && "POST" == env["REQUEST_METHOD"]
    $gc_started = false
  end
  [ 200, {}, [ "#$gc_started\n" ] ]
}

debug log:

solving 224cb06 ...
found 224cb06 in https://yhbt.net/unicorn-public/20230905094420.M199613@dcvr/
found c253540 in https://yhbt.net/unicorn.git/
preparing index
index prepared:
100644 c253540740f04acb81d945d749283ab088a7af09	t/oob_gc.ru

applying [1/1] https://yhbt.net/unicorn-public/20230905094420.M199613@dcvr/
diff --git a/t/oob_gc.ru b/t/oob_gc.ru
index c253540..224cb06 100644

Checking patch t/oob_gc.ru...
Applied patch t/oob_gc.ru cleanly.

index at:
100644 224cb068b9151e413a37a7fb2ee152fad58a6a38	t/oob_gc.ru

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).