mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-03 13:53:30 +00:00
test: sync cross-platform LocalDB guard
This commit is contained in:
commit
1ede0a5ece
1 changed files with 3 additions and 0 deletions
|
|
@ -136,6 +136,9 @@ public class Phase4SearchIndexesSqlServerTests
|
||||||
|
|
||||||
private static async Task<bool> IsLocalDbAvailableAsync()
|
private static async Task<bool> IsLocalDbAvailableAsync()
|
||||||
{
|
{
|
||||||
|
if (!OperatingSystem.IsWindows())
|
||||||
|
return false;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await using var connection = new SqlConnection(LocalDbMaster);
|
await using var connection = new SqlConnection(LocalDbMaster);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue