@constl/utils-tests 1.1.1-86be043.0 → 1.1.1-95255e4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/orbite.ts +4 -3
package/package.json
CHANGED
package/src/orbite.ts
CHANGED
|
@@ -55,8 +55,6 @@ export const créerOrbiteTest = async ({
|
|
|
55
55
|
fEffacer: fEffacerRacineDossierOrbite,
|
|
56
56
|
} = await dossierTempo();
|
|
57
57
|
|
|
58
|
-
fEffacerRacineDossierOrbite();
|
|
59
|
-
|
|
60
58
|
const _générer = async (i: number): Promise<void> => {
|
|
61
59
|
const racineDossier = `${racineDossierOrbite}/${i}`;
|
|
62
60
|
const orbite = await startOrbitDB({
|
|
@@ -79,7 +77,10 @@ export const créerOrbiteTest = async ({
|
|
|
79
77
|
fEffacerRacineDossierOrbite();
|
|
80
78
|
} catch (e) {
|
|
81
79
|
// Sur Windows, parfois les fichiers de Hélia sont encore en utilisation
|
|
82
|
-
if (
|
|
80
|
+
if ((isNode || isElectronMain) && process.platform === "win32") {
|
|
81
|
+
console.log("On ignore ça sur Windows\n", e)
|
|
82
|
+
return
|
|
83
|
+
} else {
|
|
83
84
|
throw e
|
|
84
85
|
}
|
|
85
86
|
}
|