aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-09 13:16:37 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-11 11:09:28 -0700
commit10e85f1ef7c0f6df55eaa4eee6804c9f0ec3d5eb (patch)
treec77bda7c6190c113aaa291080fd4590ba0abc792
parenta49a72dc0dfb59295a3ba0ae59febbcfe8257ff0 (diff)
fix interop tests
-rw-r--r--src/csharp/Grpc.IntegrationTesting/TestCredentials.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs b/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs
index aa54cd38a1..774563d752 100644
--- a/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs
+++ b/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs
@@ -35,6 +35,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
+using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Grpc.Core;
@@ -89,7 +90,8 @@ namespace Grpc.IntegrationTesting
private static string GetPath(string relativePath)
{
- return Path.Combine(TestContext.CurrentContext.TestDirectory, relativePath);
+ var assemblyDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ return Path.Combine(assemblyDir, relativePath);
}
}
}