http service: fix test

This commit is contained in:
Adam
2017-04-14 20:15:50 -04:00
parent b5798a99ac
commit db7737906f
2 changed files with 12 additions and 1 deletions

View File

@@ -67,6 +67,11 @@ public class Service implements SparkApplication
private void loadDatasource()
{
if (dataSource != null)
{
return; // unit test?
}
try
{
// It is difficult to inject things into Spark