Skip to content

Commit b036827

Browse files
Minor cleanup items.
1 parent 1fdec68 commit b036827

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Core.Arango.Tests/Core/TestBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public abstract class TestBase : IAsyncLifetime
2525
private const string ClusterValue = "cluster";
2626

2727
public IArangoContext Arango { get; protected set; }
28-
public static Lazy<Task<IEnumerable<ArangoDbContainer>>> Containers = new(async () =>
28+
private readonly static Lazy<Task<IEnumerable<ArangoDbContainer>>> Containers = new(async () =>
2929
Environment.GetEnvironmentVariable(ARANGODB_TOPOLOGY_ENVAR) == ClusterValue
3030
? await SetupClusterServer()
3131
: await SetupSingleServer());
@@ -175,11 +175,11 @@ public async Task SetupAsync(string serializer, string createDatabase = "test")
175175
}
176176
}
177177

178-
protected string UniqueTestRealm()
178+
protected static string UniqueTestRealm()
179179
// Last to get the Coordinators for clusters, or the only existing one for a single server.
180180
=> $"Server={Containers.Value.Result.Last().GetTransportAddress()};User={DefaultImageUser};Realm=CI-{Guid.NewGuid():D};Password={DefaultImagePassword};";
181181

182-
protected void PrintQuery<T>(IQueryable<T> query, ITestOutputHelper output)
182+
protected static void PrintQuery<T>(IQueryable<T> query, ITestOutputHelper output)
183183
{
184184
var aql = query.ToAql();
185185
output.WriteLine("QUERY:");

Core.Arango.Tests/IndexTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task DropAll(string serializer)
2222

2323
await Arango.Index.CreateAsync("test", "test", new ArangoIndex
2424
{
25-
Fields = new List<string> {"test"},
25+
Fields = ["test"],
2626
Type = ArangoIndexType.Hash
2727
});
2828

0 commit comments

Comments
 (0)