unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
blob 7f40601dd69bda096c6d3f1617e1f6e7f63cd4eb 358 bytes (raw)
name: t/oob_gc_path.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, 5, /BAD/
$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 7f40601 ...
found 7f40601 in https://yhbt.net/unicorn-public/20230905094420.M199613@dcvr/
found af8e3b9 in https://yhbt.net/unicorn.git/
preparing index
index prepared:
100644 af8e3b9ef5c466ba13e843c37a1e893164be0601	t/oob_gc_path.ru

applying [1/1] https://yhbt.net/unicorn-public/20230905094420.M199613@dcvr/
diff --git a/t/oob_gc_path.ru b/t/oob_gc_path.ru
index af8e3b9..7f40601 100644

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

index at:
100644 7f40601dd69bda096c6d3f1617e1f6e7f63cd4eb	t/oob_gc_path.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).