mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-02 17:13:33 +01:00
fix: restore Node deployment and keep Go on its branch
This commit is contained in:
1 parent
1983441c68
commit
bff2e343fd
602 files changed
+92
-1026486
No files matched your search
@@ -1,16 +0,0 @@
|
||||
'use strict';
|
||||
// Run on stdin inside the rollback image, with no network or application secrets.
|
||||
const assert = require('node:assert/strict');
|
||||
const { DatabaseSync } = require('node:sqlite');
|
||||
const zstd = require('@mongodb-js/zstd');
|
||||
(async () => {
|
||||
const original = Buffer.from('rollback native dependency check');
|
||||
assert.deepEqual(await zstd.decompress(await zstd.compress(original, 3)), original);
|
||||
const db = new DatabaseSync(':memory:');
|
||||
try {
|
||||
db.exec('CREATE TABLE smoke(value TEXT)');
|
||||
db.prepare('INSERT INTO smoke(value) VALUES (?)').run('round trip');
|
||||
assert.equal(db.prepare('SELECT value FROM smoke').get().value, 'round trip');
|
||||
} finally { db.close(); }
|
||||
console.log('PASS: rollback native Zstandard and SQLite round trips');
|
||||
})().catch(error => { console.error(error); process.exitCode = 1; });
|
||||
Reference in new issue
Block a user