Skip to content

Commit a988541

Browse files
committed
Test fix
1 parent 4bcf248 commit a988541

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/WebJobs.Script.Tests/ApiHub/ApiHubTestHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public static void SetDefaultConnectionFactory()
4242
tableAdapter.AddDataSet(DataSetName);
4343
tableAdapter.AddTable(DataSetName, TableName, primaryKey: PrimaryKeyColumn);
4444
ConnectionFactory.Default = new FakeConnectionFactory(tableAdapter);
45+
46+
// The value doesn't really matter here - this is just so we
47+
// pass the Connection value validation that ScriptHost performs
48+
// on startup
49+
Environment.SetEnvironmentVariable(Key, "TestMockSqlConnection");
4550
}
4651
else
4752
{

0 commit comments

Comments
 (0)