#!/usr/bin/expect

set timeout 1
spawn dolt sql
set id $spawn_id

expect -i id "doltsql> "
send -i id "CREATE TABLE test_expect (pk int primary key);\r"

expect -i id "doltsql> "

# spawn the second process
spawn dolt sql
set id2 $spawn_id

# Todo: Should this be a dolt ls instead ?
expect -i id2 "doltsql> "
send -i id2 "show tables;\r"

expect -i id eof
expect -i id2 eof
