Skip to content

Commit

Permalink
Remove private key
Browse files Browse the repository at this point in the history
  • Loading branch information
InversionSpaces committed Feb 28, 2024
1 parent 29b8c5d commit 4c117c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion test/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ function getOrFail(envVar: string): string {
}

export const FLUENCE_ENV = getOrFail("FLUENCE_ENV");
export const FLUENCE_CHAIN_PRIVATE_KEY = getOrFail("FLUENCE_CHAIN_PRIVATE_KEY");
export const RPC_PROVIDERS = getOrFail("RPC_PROVIDERS").split(",");
11 changes: 3 additions & 8 deletions test/fRPC.integration-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { FLUENCE_CHAIN_PRIVATE_KEY, FLUENCE_ENV, RPC_PROVIDERS } from "./env";
import { FLUENCE_ENV, RPC_PROVIDERS } from "./env";
import {
startGateway,
fluence,
Expand Down Expand Up @@ -59,13 +59,11 @@ async function testGateway(mode?: string, times = 6) {
/**
* Run fluence CLI with env and private key
*/
async function fluenceKeyEnv(...args: string[]) {
async function fluenceEnv(...args: string[]) {
return fluence(
...args,
"--env",
FLUENCE_ENV,
"--priv-key",
FLUENCE_CHAIN_PRIVATE_KEY,
);
}

Expand Down Expand Up @@ -127,14 +125,11 @@ describe("fRPC", () => {
// Remove previous deployment info
await backupFile(".fluence/workers.yaml");

const [stdout, stderr] = await fluenceKeyEnv(
const [stdout, stderr] = await fluenceEnv(
"deploy",
"fRPC-deployment"
);

console.log("stdout", stdout);
console.log("stderr", stderr);

expect(stdout.includes("Success!")).toBeTruthy();

const workersMatch = stderr.match(/(\d+)\s*workers/);
Expand Down

0 comments on commit 4c117c9

Please sign in to comment.