Skip to content

Commit 0cb82dc

Browse files
DOC-4733 updated testing code
1 parent af2a2b6 commit 0cb82dc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/Doc/GeoIndexExample.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,29 @@
99

1010
// REMOVE_START
1111
using NRedisStack.Tests;
12-
using NetTopologySuite.Geometries;
1312

1413
namespace Doc;
1514
[Collection("DocsTests")]
1615
// REMOVE_END
1716

1817
// HIDE_START
1918
public class GeoIndexExample
19+
// REMOVE_START
20+
: AbstractNRedisStackTest, IDisposable
21+
// REMOVE_END
2022
{
23+
// REMOVE_START
24+
public GeoIndexExample(EndpointsFixture fixture) : base(fixture) { }
2125

22-
[SkipIfRedis(Is.OSSCluster)]
26+
[SkippableFact]
27+
// REMOVE_END
2328
public void run()
2429
{
30+
//REMOVE_START
31+
// This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection
32+
SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone);
33+
var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone);
34+
//REMOVE_END
2535
var muxer = ConnectionMultiplexer.Connect("localhost:6379");
2636
var db = muxer.GetDatabase();
2737
//REMOVE_START

0 commit comments

Comments
 (0)