Skip to content

Commit ba1a246

Browse files
committed
Use an in-memory table to speed up this test
1 parent dbc02cb commit ba1a246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mysql2/result_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
it "should raise an exception if streaming ended due to a timeout" do
137137
# Create an extra client instance, since we're going to time it out
138138
client = Mysql2::Client.new DatabaseCredentials['root']
139-
client.query "CREATE TEMPORARY TABLE streamingTest (val BINARY(255))"
139+
client.query "CREATE TEMPORARY TABLE streamingTest (val BINARY(255)) ENGINE=MEMORY"
140140

141141
# Insert enough records to force the result set into multiple reads
142142
# (the BINARY type is used simply because it forces full width results)

0 commit comments

Comments
 (0)