cstack / db_tutorial

Writing a sqlite clone from scratch in C
https://cstack.github.io/db_tutorial
MIT License
9.56k stars 968 forks source link

Failure/Error: pipe.puts commands Errno::EPIPE: Broken pipe #107

Closed qq909244296 closed 1 year ago

qq909244296 commented 1 year ago

In part5, when i run bundle exec rspec i encounter this problem but not before part4, so what happened?

qq909244296 commented 1 year ago

it 'prints error message when table if full' do script = (1..1401).map do |i| "insert #{i} user#{i} penson#{i}@example.com" end script << ".exit" result = run_script(script) expect(result[-2]).to eq('db > Error: Table full.') end

when script = (1..100).map do |i|, the error disappeared. Is there any way to solve this problem?