cstack / db_tutorial

Writing a sqlite clone from scratch in C

Home Page:https://cstack.github.io/db_tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

qq909244296 opened this issue · comments

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

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?