Modify RAD env vars based on heartwood rc.6

This commit is contained in:
Sebastian Martinez
2024-04-30 11:39:35 +02:00
parent 297c4b8ee1
commit 207ec7782a
4 changed files with 13 additions and 8 deletions
+7 -2
View File
@@ -3,6 +3,7 @@ import {
cobUrl,
expect,
markdownUrl,
shortBobHead,
sourceBrowsingRid,
sourceBrowsingUrl,
test,
@@ -362,7 +363,9 @@ test("peer and branch switching", async ({ page }) => {
{
await expect(page.getByRole("button", { name: "main" })).toBeVisible();
await expect(
page.getByRole("button", { name: "ff32f18 Update readme" }).first(),
page
.getByRole("button", { name: `${shortBobHead} Update readme` })
.first(),
).toBeVisible();
await expect(
page.getByRole("link", {
@@ -370,7 +373,9 @@ test("peer and branch switching", async ({ page }) => {
}),
).toBeVisible();
await expect(
page.getByRole("button", { name: "ff32f18 Update readme" }).first(),
page
.getByRole("button", { name: `${shortBobHead} Update readme` })
.first(),
).toBeVisible();
}
}
+2 -2
View File
@@ -659,7 +659,7 @@ export const aliceRemote =
"did:key:z6MkqGC3nWZhYieEVTVDKW5v588CiGfsDSmRVG9ZwwWTvLSK";
export const bobRemote =
"did:key:z6Mkg49NtQR2LyYRDCQFK4w1VVHqhypZSSRo7HsyuN7SV7v5";
export const bobHead = "ff32f18dc09d82bff329ffcd96fd5eba2d7f826c";
export const bobHead = "79b0b2522c0d406d398cb5b7b381455294e1489f";
export const shortBobHead = formatCommit(bobHead);
export const sourceBrowsingRid = "rad:z4BwwjPCFNVP27FwVbDFgwVwkjcir";
export const cobRid = "rad:z3fpY7nttPPa6MBnAv2DccHzQJnqe";
@@ -685,6 +685,6 @@ export const gitOptions = {
GIT_AUTHOR_DATE: "1671125284",
GIT_COMMITTER_NAME: "Bob Belcher",
GIT_COMMITTER_EMAIL: "bob@radicle.xyz",
GIT_COMMITTER_DATE: "Mon Dec 21 14:00 2022 +0100",
GIT_COMMITTER_DATE: "1671627600",
},
};
+3 -3
View File
@@ -238,7 +238,7 @@ export class RadiclePeer {
...gitOptions,
RAD_HOME: radHome,
RAD_PASSPHRASE: "asdf",
RAD_SEED: node,
RAD_KEYGEN_SEED: node,
RAD_SOCKET: socket,
};
@@ -412,8 +412,8 @@ export class RadiclePeer {
GIT_CONFIG_NOSYSTEM: "1",
RAD_HOME: this.#radHome,
RAD_PASSPHRASE: "asdf",
RAD_COMMIT_TIME: "1671125284",
RAD_SEED: this.#radSeed,
RAD_LOCAL_TIME: "1671125284",
RAD_KEYGEN_SEED: this.#radSeed,
RAD_SOCKET: this.#socket,
...opts?.env,
...this.#gitOptions,
+1 -1
View File
@@ -15,7 +15,7 @@ export function createOptions(projectFolder: string, days: number): Options {
return {
cwd: projectFolder,
// eslint-disable-next-line @typescript-eslint/naming-convention
env: { RAD_COMMIT_TIME: (1671211684 + days * 86400).toString() },
env: { RAD_LOCAL_TIME: (1671211684 + days * 86400).toString() },
};
}