Remove isTesting addition
This commit is contained in:
@@ -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,
|
||||
}) {}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user