Skip to content

Commit 44f8c11

Browse files
authored
Fix folder used for Integration tests (#386)
* fix working folder for integration tests * fix datetime format
1 parent 1f22e56 commit 44f8c11

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Integration/IntegrationTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ protected void StartAzurite()
178178
/// </remarks>
179179
protected void StartFunctionHost(string functionName, SupportedLanguages language, bool useTestFolder = false, DataReceivedEventHandler customOutputHandler = null)
180180
{
181-
string workingDirectory = useTestFolder ? GetPathToBin() : Path.Combine(GetPathToBin(), "SqlExtensionSamples", Enum.GetName(typeof(SupportedLanguages), language));
181+
string workingDirectory = language == SupportedLanguages.CSharp && useTestFolder ? GetPathToBin() : Path.Combine(GetPathToBin(), "SqlExtensionSamples", Enum.GetName(typeof(SupportedLanguages), language));
182182
if (!Directory.Exists(workingDirectory))
183183
{
184184
throw new FileNotFoundException("Working directory not found at " + workingDirectory);

test/Integration/test-js/AddProductColumnTypes/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
module.exports = async function (context, req) {
66
const product = {
77
"productId": req.query.productId,
8-
"datetime": Date.now(),
9-
"datetime2": Date.now()
8+
"datetime": new Date().toISOString(),
9+
"datetime2": new Date().toISOString()
1010
};
1111

1212
context.bindings.product = JSON.stringify(product);

0 commit comments

Comments
 (0)