Skip to content

Commit

Permalink
Make test env have fle system with required master key for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilblackdragon committed Jun 19, 2019
1 parent 334c09d commit d621f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LocalTestEnvironment extends NodeEnvironment {
contractName: "test" + Date.now(),
accountId: "test" + Date.now()
});
const keyStore = new nearlib.keyStores.InMemoryKeyStore();
const keyStore = new nearlib.keyStore.UnencryptedFileSystemKeyStore('./nearlib');
await keyStore.setKey(config.networkId, testAccountName, nearlib.utils.KeyPair.fromString('ed25519:2wyRcSwSuHtRVmkMCGjPwnzZmQLeXLzLLyED1NDMt4BjnKgQL6tF85yBx6Jr26D2dUNeC716RBoTxntVHsegogYw'));
config.deps = Object.assign(config.deps || {}, {
storage: this.createFakeStorage(),
Expand Down

0 comments on commit d621f67

Please sign in to comment.