Skip to content

Commit

Permalink
Remove unused driver
Browse files Browse the repository at this point in the history
  • Loading branch information
XmasApple committed Sep 28, 2023
1 parent 9dbbffe commit b25d772
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Ydb.Sdk/tests/Auth/TestStaticAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,15 @@ public class TestStaticAuth : IDisposable
private readonly ILoggerFactory? _loggerFactory;
private readonly ILogger _logger;

private readonly Driver _anonDriver;
private readonly TableClient _anonTableClient;

public TestStaticAuth(ITestOutputHelper output)
{
_output = output;
_loggerFactory = Utils.GetLoggerFactory() ?? NullLoggerFactory.Instance;
_logger = _loggerFactory.CreateLogger<TestStaticAuth>();

var driverConfig = new DriverConfig(
endpoint: "grpc://localhost:2136",
database: "/local"
);

_anonDriver = new Driver(driverConfig, _loggerFactory);
_anonDriver.Initialize().Wait();

_anonTableClient = new TableClient(_anonDriver);
}

public void Dispose()
{
_anonTableClient.Dispose();
_anonDriver.Dispose();
GC.SuppressFinalize(this);
}

Expand Down

0 comments on commit b25d772

Please sign in to comment.