unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
blob 43c0f68f0d82dda96b90e7b08cd18e213252f523 436 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
18
19
20
 
#\-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
  ObjectSpace.each_object(Socket) do |x|
    x.closed? or abort "not closed #{x}"
  end
  $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 43c0f68 ...
found 43c0f68 in https://yhbt.net/unicorn-public/2c3b457c-7525-44ca-8bdb-493f5a785dad@shopify.com/
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/2c3b457c-7525-44ca-8bdb-493f5a785dad@shopify.com/
diff --git a/t/oob_gc.ru b/t/oob_gc.ru
index c253540..43c0f68 100644

Checking patch t/oob_gc.ru...
error: while searching for:

 # Mock GC.start
 def GC.start
  ObjectSpace.each_object(Kgio::Socket) do |x|
     x.closed? or abort "not closed #{x}"
   end
   $gc_started = true

error: patch failed: t/oob_gc.ru:7
error: t/oob_gc.ru: patch does not apply

git apply error:; exit status=1
trying https://yhbt.net/unicorn-public/2c3b457c-7525-44ca-8bdb-493f5a785dad@shopify.com/

applying [2/1] https://yhbt.net/unicorn-public/2c3b457c-7525-44ca-8bdb-493f5a785dad@shopify.com/
diff --git a/t/oob_gc.ru b/t/oob_gc.ru
index c253540..43c0f68 100644

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

index at:
100644 43c0f68f0d82dda96b90e7b08cd18e213252f523	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).