-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #913 from lens-protocol/chore/re-enable-gated-tests
chore: re-enable skipped test for Amoy release
- Loading branch information
Showing
11 changed files
with
48 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
import { Wallet } from '@ethersproject/wallet'; | ||
import { invariant } from '@lens-protocol/shared-kernel'; | ||
import * as dotenv from 'dotenv'; | ||
|
||
import { buildTestEnvironment } from '../../__helpers__'; | ||
import { LensClient } from '../LensClient'; | ||
|
||
dotenv.config(); | ||
|
||
export function createGatedLensClient(signer: Wallet) { | ||
invariant(process.env.TESTING_NO_RATE_LIMIT, 'TESTING_NO_RATE_LIMIT is not defined in .env file'); | ||
invariant(process.env.TESTING_WHITELISTED, 'TESTING_WHITELISTED is not defined in .env file'); | ||
|
||
return new LensClient({ | ||
environment: buildTestEnvironment(), | ||
authentication: { | ||
domain: 'lens.dev', | ||
uri: 'https://lens.dev', | ||
}, | ||
headers: { | ||
'x-e2e-lens-no-rl': process.env.TESTING_NO_RATE_LIMIT, | ||
'X-Whitelisted': process.env.TESTING_WHITELISTED, | ||
}, | ||
signer, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters