@@ -53,7 +53,7 @@ defmodule Exqlite.Sqlite3Test do
53
53
Sqlite3 . execute ( ro_conn , insert_value_query )
54
54
end
55
55
56
- test "opens a database in sqlite_open_nomutex mode" do
56
+ test "opens a database in readonly_nomutex mode" do
57
57
# Create database with readwrite connection
58
58
{ :ok , path } = Temp . path ( )
59
59
{ :ok , rw_conn } = Sqlite3 . open ( path )
@@ -64,7 +64,7 @@ defmodule Exqlite.Sqlite3Test do
64
64
insert_value_query = "insert into test (stuff) values ('This is a test')"
65
65
:ok = Sqlite3 . execute ( rw_conn , insert_value_query )
66
66
67
- # Read from database with a readonly connection
67
+ # Read from database with a readonly_nomutex connection
68
68
{ :ok , ro_conn } = Sqlite3 . open ( path , mode: :readonly_nomutex )
69
69
70
70
select_query = "select id, stuff from test order by id asc"
@@ -73,7 +73,7 @@ defmodule Exqlite.Sqlite3Test do
73
73
74
74
assert [ 1 , "This is a test" ] == columns
75
75
76
- # Readonly nomutex connection cannot insert
76
+ # Readonly nomutex connection cannot insert
77
77
assert { :error , "attempt to write a readonly database" } ==
78
78
Sqlite3 . execute ( ro_conn , insert_value_query )
79
79
end
0 commit comments