Remove unnecessary properties from mongo session
Having the mongo query runner explicitly set the time zone instead of
using the default zone from testing session caused test failures once
the default was changed. Therefore, we don't want to be setting
properties unnecessarily.  This change fixes the failing test
TestMongoDistributedQueries.testAtTimeZone()
@@ -26,12 +26,10 @@ import io.airlift.tpch.TpchTable;
import java.net.InetSocketAddress;
import java.util.Map;
-import static com.facebook.presto.spi.type.TimeZoneKey.UTC_KEY;
import static com.facebook.presto.testing.TestingSession.testSessionBuilder;
import static com.facebook.presto.tests.QueryAssertions.copyTpchTables;
import static com.facebook.presto.tpch.TpchMetadata.TINY_SCHEMA_NAME;
import static io.airlift.testing.Closeables.closeAllSuppress;
-import static java.util.Locale.ENGLISH;
public class MongoQueryRunner
extends DistributedQueryRunner
@@ -90,8 +88,6 @@ public class MongoQueryRunner
return testSessionBuilder()
.setCatalog("mongodb")
.setSchema(TPCH_SCHEMA)
- .setTimeZoneKey(UTC_KEY)
- .setLocale(ENGLISH)
.build();
}
