Skip to content

Commit 725bf4c

Browse files
committed
chore: remove skipped test
1 parent a057e5a commit 725bf4c

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

test/apify/proxy_configuration.test.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -619,28 +619,6 @@ describe('Actor.createProxyConfiguration()', () => {
619619
getUserSpy.mockRestore();
620620
});
621621

622-
test.skip('should show warning log', async () => {
623-
process.env.APIFY_TOKEN = '123456789';
624-
625-
const getUserSpy = vitest.spyOn(UserClient.prototype, 'get');
626-
const status = { connected: true };
627-
const fakeUserData = {
628-
proxy: { password: 'some-other-users-password' },
629-
};
630-
getUserSpy.mockResolvedValueOnce(fakeUserData as any);
631-
gotScrapingSpy.mockResolvedValueOnce({ body: status } as any);
632-
633-
const proxyConfiguration = new ProxyConfiguration(basicOpts);
634-
// @ts-expect-error
635-
const logMock = vitest.spyOn(proxyConfiguration.log, 'warning');
636-
await proxyConfiguration.initialize();
637-
expect(logMock).toBeCalledTimes(1);
638-
639-
logMock.mockRestore();
640-
getUserSpy.mockRestore();
641-
gotScrapingSpy.mockRestore();
642-
});
643-
644622
test(`shouldn't request password from API when both PROXY_PASSWORD and TOKEN envs are provided`, async () => {
645623
process.env[APIFY_ENV_VARS.TOKEN] = 'some_token';
646624
process.env[APIFY_ENV_VARS.PROXY_PASSWORD] = 'proxy_password';

0 commit comments

Comments
 (0)