diff --git a/test/Integration/IntegrationTestBase.cs b/test/Integration/IntegrationTestBase.cs index 4fe1db996..a59f384ac 100644 --- a/test/Integration/IntegrationTestBase.cs +++ b/test/Integration/IntegrationTestBase.cs @@ -178,7 +178,7 @@ protected void StartAzurite() /// protected void StartFunctionHost(string functionName, SupportedLanguages language, bool useTestFolder = false, DataReceivedEventHandler customOutputHandler = null) { - string workingDirectory = useTestFolder ? GetPathToBin() : Path.Combine(GetPathToBin(), "SqlExtensionSamples", Enum.GetName(typeof(SupportedLanguages), language)); + string workingDirectory = language == SupportedLanguages.CSharp && useTestFolder ? GetPathToBin() : Path.Combine(GetPathToBin(), "SqlExtensionSamples", Enum.GetName(typeof(SupportedLanguages), language)); if (!Directory.Exists(workingDirectory)) { throw new FileNotFoundException("Working directory not found at " + workingDirectory); diff --git a/test/Integration/test-js/AddProductColumnTypes/index.js b/test/Integration/test-js/AddProductColumnTypes/index.js index 8d83ac300..465bb67ab 100644 --- a/test/Integration/test-js/AddProductColumnTypes/index.js +++ b/test/Integration/test-js/AddProductColumnTypes/index.js @@ -5,8 +5,8 @@ module.exports = async function (context, req) { const product = { "productId": req.query.productId, - "datetime": Date.now(), - "datetime2": Date.now() + "datetime": new Date().toISOString(), + "datetime2": new Date().toISOString() }; context.bindings.product = JSON.stringify(product);