unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
blob e772261937e0b38cf5b82b94a52137b40b8f760e 446 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
18
19
20
 
#\-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
  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 e772261 ...
found e772261 in https://yhbt.net/unicorn-public/2c3b457c-7525-44ca-8bdb-493f5a785dad@shopify.com/
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/2c3b457c-7525-44ca-8bdb-493f5a785dad@shopify.com/
diff --git a/t/oob_gc_path.ru b/t/oob_gc_path.ru
index af8e3b9..e772261 100644

Checking patch t/oob_gc_path.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_path.ru:7
error: t/oob_gc_path.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_path.ru b/t/oob_gc_path.ru
index af8e3b9..e772261 100644

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

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