Skip to content

Commit

Permalink
Remove "Temporary:ConnectionAcquisitionTimeout" TestKit flag (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude committed Mar 10, 2022
1 parent 30c7db3 commit 7926708
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ static SupportedFeatures()
"AuthorizationExpiredTreatment",
"Detail:ClosedDriverIsEncrypted",
"Detail:DefaultSecurityConfigValueEquality",
"Feature:API:ConnectionAcquisitionTimeout",
"Feature:API:Driver.IsEncrypted",
//"Feature:API:Liveness.Check",
"Feature:API:Result.List",
Expand All @@ -29,7 +30,6 @@ static SupportedFeatures()
"Feature:Bolt:4.2",
"Feature:Bolt:4.3",
"Feature:Bolt:4.4",
"Feature:Configuration:ConnectionAcquisitionTimeout",
"Feature:Impersonation",
//"Feature:TLS:1.1",
"Feature:TLS:1.2",
Expand All @@ -40,7 +40,6 @@ static SupportedFeatures()
//"Optimization:MinimalResets",
//"Optimization:PullPipelining",
//"Optimization:ResultListFetchAll",
"Temporary:ConnectionAcquisitionTimeout",
//"Temporary:CypherPathAndRelationship",
//"Temporary:DriverFetchSize",
"Temporary:DriverMaxConnectionPoolSize",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class DataType
}

internal static class NativeToCypher
{
{
//Mapping of object type to a conversion delegate that will return a NativeToCypherObject that can be serialized to JSON.
private static Dictionary<Type, Func<string, object, NativeToCypherObject>> FunctionMap { get; set; } = new Dictionary<Type, Func<string, object, NativeToCypherObject>>()
{
Expand All @@ -38,7 +38,7 @@ internal static class NativeToCypher
{ typeof(Duration), CypherTODO },
{ typeof(Point), CypherTODO },

{ typeof(INode), CypherNode },
{ typeof(INode), CypherNode },
{ typeof(IRelationship), CypherTODO },
{ typeof(IPath), CypherTODO }
};
Expand Down Expand Up @@ -91,7 +91,7 @@ public static object Convert(object sourceObject)

if (sourceObject as Point != null)
return FunctionMap[typeof(Point)]("CypherPoint", sourceObject);

if (sourceObject as INode != null)
return FunctionMap[typeof(INode)]("CypherNode", sourceObject);

Expand All @@ -100,7 +100,7 @@ public static object Convert(object sourceObject)

if (sourceObject as IPath != null)
return FunctionMap[typeof(IPath)]("CypherPath", sourceObject);


throw new IOException($"Attempting to convert an unsuported object type to a CypherType: {sourceObject.GetType()}");
}
Expand All @@ -114,7 +114,7 @@ public static NativeToCypherObject CypherSimple(string cypherType, object obj)
public static NativeToCypherObject CypherMap(string cypherType, object obj)
{
Dictionary<string, object> result = new Dictionary<string, object>();

foreach(KeyValuePair<string, object> pair in (Dictionary<string, object>)obj)
{
result[pair.Key] = Convert(pair.Value);
Expand Down

0 comments on commit 7926708

Please sign in to comment.