Skip to content

Commit 54da88f

Browse files
committed
Ensure we don't leave the DataStreamsIntegrationTests package dirty when running our tests. Fixes #120
1 parent 1127cd4 commit 54da88f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/datastreams.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ end
5454

5555
# SQLite
5656
dbfile = joinpath(DSTESTDIR, "randoms.sqlite")
57-
dbfile2 = joinpath(DSTESTDIR, "randoms2.sqlite")
57+
dbfile2 = joinpath(dirname(@__FILE__),"test.sqlite")
5858
cp(dbfile, dbfile2; remove_destination=true)
59-
db = SQLite.DB(dbfile)
6059
db2 = SQLite.DB(dbfile2)
61-
SQLite.createtable!(db2, "randoms2_small", Data.schema(SQLite.Source(db, "select * from randoms_small")))
62-
sqlitesource = Tester("SQLite.Source", SQLite.query, true, SQLite.Source, (db, "select * from randoms_small"), scalartransforms, vectortransforms, x->x, ()->nothing)
60+
SQLite.createtable!(db2, "randoms2_small", Data.schema(SQLite.Source(db2, "select * from randoms_small")))
61+
sqlitesource = Tester("SQLite.Source", SQLite.query, true, SQLite.Source, (db2, "select * from randoms_small"), scalartransforms, vectortransforms, x->x, ()->nothing)
6362
sqlitesink = Tester("SQLite.Sink", SQLite.load, true, SQLite.Sink, (db2, "randoms2_small"), scalartransforms, vectortransforms, x->SQLite.query(db2, "select * from randoms2_small"), (x,y)->nothing)
6463

6564
DataStreamsIntegrationTests.teststream([dfsource, sqlitesource], [dfsink, sqlitesink]; rows=99)

0 commit comments

Comments
 (0)