Skip to content

Commit 63e6c42

Browse files
committed
Fix tests
quoteString for encryption key
1 parent 5871e7e commit 63e6c42

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

melos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ scripts:
4242

4343
prepare:assets:
4444
description: Download Sqlite3 WASM for tests
45-
run: dart ./bin/setup_web.dart --no-worker --output-dir assets
45+
run: dart ./bin/setup_web.dart --no-worker --output-dir ../powersync_core/assets
4646
exec:
4747
concurrency: 1
4848
packageFilters:

packages/powersync_core/assets/.gitkeep

Whitespace-only changes.

packages/powersync_core/test/server/worker_server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Future<void> hybridMain(StreamChannel<Object?> channel) async {
1717

1818
if (!(await File(sqliteOutputPath).exists())) {
1919
throw AssertionError(
20-
'sqlite3.wasm file should be present in the powersync/assets folder');
20+
'sqlite3.wasm file should be present in the powersync_core/assets folder');
2121
}
2222

2323
final workerOutputPath = p.join(assetsDirectory, 'powersync_db.worker.js');

packages/powersync_sqlcipher/lib/src/sqlcipher.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PowerSyncSQLCipherOpenFactory extends PowerSyncOpenFactory {
1717
final basePragmaStatements = super.pragmaStatements(options);
1818
return [
1919
// Set the encryption key as the first statement
20-
"PRAGMA KEY = '$key'",
20+
"PRAGMA KEY = ${quoteString(key)}",
2121
// Include the default statements afterwards
2222
for (var statement in basePragmaStatements) statement
2323
];

0 commit comments

Comments
 (0)