fix(api client): Fixed localhost URL issue in test.client.ts

This commit is contained in:
2024-11-06 16:59:17 +01:00
parent f80b8decbc
commit 38d2120c35
4 changed files with 8 additions and 3 deletions

View File

@ -33,7 +33,7 @@ tap.preTask('should create a new machine user for testing', async () => {
tap.test('should create a new cloudlyApiClient', async () => {
testClient = new cloudlyApiClient.CloudlyApiClient({
registerAs: 'api',
cloudlyUrl: `http://localhost:${helpers.testCloudlyConfig.publicPort}`,
cloudlyUrl: `http://127.0.0.1:${helpers.testCloudlyConfig.publicPort}`,
});
await testClient.start();
expect(testClient).toBeTruthy();