Displaying 2 results from an estimated 2 matches for "spec_reader".
2007 Nov 01
2
Can''t use #exactly when #and_return influences it.
...r to loop on the content of its Stack until false is
returned. I also want an optional argument to exist that limits how many
times the stack will be read, even if some elements are left. I was trying
to spec this last bit but ended up on a false positive.
Hope the example will be clear enough:
#spec_reader.rb
describe Reader do
it "should stop reading items when called with a limit" do
@stack = mock(Stack)
Stack.should_receive(:new).and_return(@stack)
@stack.should_receive(:read).exactly(3).times.and_return(2,4,1,5,3,1,false)
@reader = Reader.new
@reader.read_stack(3)
end
end...
2009 Apr 01
4
ZFS Locking Up periodically
I''ve recently re-installed an X4500 running Nevada b109 and have been
experiencing ZFS lock ups regularly (perhaps once every 2-3 days).
The machine is a backup server and receives hourly ZFS snapshots from
another thumper - as such, the amount of zfs activity tends to be
reasonably high. After about 48 - 72 hours, the file system seems to lock
up and I''m unable to do anything