diff --git a/packages/core/src/amazonqTest/chat/controller/controller.ts b/packages/core/src/amazonqTest/chat/controller/controller.ts
index cb5cbc2e851..aa677c6409d 100644
--- a/packages/core/src/amazonqTest/chat/controller/controller.ts
+++ b/packages/core/src/amazonqTest/chat/controller/controller.ts
@@ -548,16 +548,12 @@ export class TestController {
*/
if (!['java', 'python'].includes(language) || workspaceFolder === undefined) {
let unsupportedMessage: string
- const unsupportedLanguage = language ? language.charAt(0).toUpperCase() + language.slice(1) : ''
if (!workspaceFolder) {
// File is outside of workspace
unsupportedMessage = `⚠I can't generate tests for ${fileName} because the file is outside of workspace scope.
I can still provide examples, instructions and code suggestions.`
- } else if (unsupportedLanguage) {
- unsupportedMessage = `⚠I'm sorry, but /test only supports Python and Java
While ${unsupportedLanguage} is not supported, I will generate a suggestion below.`
- } else {
- unsupportedMessage = `⚠I'm sorry, but /test only supports Python and Java
I will still generate a suggestion below.`
+ this.messenger.sendMessage(unsupportedMessage, tabID, 'answer')
}
- this.messenger.sendMessage(unsupportedMessage, tabID, 'answer')
+ // Keeping this metric as is. TODO - Change to true once we support through other feature
session.isSupportedLanguage = false
await this.onCodeGeneration(
session,