Skip to content

Comments

Fix Live Test, Create Mock Test Files.#5

Merged
MohamedSabthar merged 4 commits intoballerina-platform:mainfrom
Pranavan-S:hubspot
Jan 16, 2025
Merged

Fix Live Test, Create Mock Test Files.#5
MohamedSabthar merged 4 commits intoballerina-platform:mainfrom
Pranavan-S:hubspot

Conversation

@Pranavan-S
Copy link
Contributor

Purpose

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@Pranavan-S
Copy link
Contributor Author

Hi,

I have separated the mock and live tests into two distinct files: mock_tests.bal and tests.bal. This eliminates the need for the isLiveServer boolean flag.

To accommodate both test scenarios, I have created two separate clients: one for mock tests and one for live tests. The mock client bypasses the need to hit a remote URL for the refresh token, while the live client functions as intended for live interactions.

@Pranavan-S
Copy link
Contributor Author

I have resolved the comments.

MohamedSabthar
MohamedSabthar previously approved these changes Jan 16, 2025
@MohamedSabthar MohamedSabthar merged commit f2af352 into ballerina-platform:main Jan 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants