Remove isTesting addition

This commit is contained in:
James Long
2026-03-23 09:35:30 -04:00
parent ab3c80956b
commit a61f809ea6
2 changed files with 2 additions and 7 deletions
@@ -72,10 +72,6 @@ export namespace Installation {
return CHANNEL === "local"
}
export function isTesting() {
return process.env.NODE_ENV === "test"
}
export class UpgradeFailedError extends Schema.TaggedErrorClass<UpgradeFailedError>()("UpgradeFailedError", {
stderr: Schema.String,
}) {}
+2 -3
View File
@@ -61,7 +61,6 @@ async function run() {
if (!payload.type.startsWith("server.")) {
console.log(payload)
try {
console.log("replaying")
SyncEvent.replay({
type: payload.type,
id: payload.id,
@@ -71,7 +70,7 @@ async function run() {
})
// console.log("[apply] ok:", event.type)
// console.log("db path", Database.Path)
console.log("db path", Database.Path)
} catch (err) {
console.error("[apply] error:", err)
}
@@ -80,7 +79,7 @@ async function run() {
console.log("\ndisconnected")
Database.close()
await fs.rm(dir, { recursive: true, force: true })
// await fs.rm(dir, { recursive: true, force: true })
}
run()