@@ -24,14 +24,13 @@ public override async ValueTask InitializeAsync()
2424 public async Task CreateSync_CompletesSuccessfully ( )
2525 {
2626 var ct = TestContext . Current . CancellationToken ;
27- var collectionName = "ExportTest1" ;
28- await CollectionFactory ( collectionName ) ;
27+ var collection = await CollectionFactory ( "ExportTest1" ) ;
2928
3029 var export = await _weaviate . Export . CreateSync (
3130 new ExportCreateRequest (
3231 $ "export-sync-{ Guid . NewGuid ( ) : N} ",
3332 _backend ,
34- IncludeCollections : [ collectionName ]
33+ IncludeCollections : [ collection . Name ]
3534 ) ,
3635 timeout : TimeSpan . FromMinutes ( 2 ) ,
3736 cancellationToken : ct
@@ -45,14 +44,13 @@ public async Task CreateSync_CompletesSuccessfully()
4544 public async Task Create_ThenWaitForCompletion ( )
4645 {
4746 var ct = TestContext . Current . CancellationToken ;
48- var collectionName = "ExportTest2" ;
49- await CollectionFactory ( collectionName ) ;
47+ var collection = await CollectionFactory ( "ExportTest2" ) ;
5048
5149 await using var operation = await _weaviate . Export . Create (
5250 new ExportCreateRequest (
5351 $ "export-async-{ Guid . NewGuid ( ) : N} ",
5452 _backend ,
55- IncludeCollections : [ collectionName ]
53+ IncludeCollections : [ collection . Name ]
5654 ) ,
5755 ct
5856 ) ;
@@ -70,12 +68,11 @@ public async Task Create_ThenWaitForCompletion()
7068 public async Task GetStatus_ReturnsExportInfo ( )
7169 {
7270 var ct = TestContext . Current . CancellationToken ;
73- var collectionName = "ExportTest3" ;
74- await CollectionFactory ( collectionName ) ;
71+ var collection = await CollectionFactory ( "ExportTest3" ) ;
7572 var exportId = $ "export-status-{ Guid . NewGuid ( ) : N} ";
7673
7774 await _weaviate . Export . CreateSync (
78- new ExportCreateRequest ( exportId , _backend , IncludeCollections : [ collectionName ] ) ,
75+ new ExportCreateRequest ( exportId , _backend , IncludeCollections : [ collection . Name ] ) ,
7976 timeout : TimeSpan . FromMinutes ( 2 ) ,
8077 cancellationToken : ct
8178 ) ;
@@ -90,14 +87,13 @@ await _weaviate.Export.CreateSync(
9087 public async Task Cancel_StopsRunningExport ( )
9188 {
9289 var ct = TestContext . Current . CancellationToken ;
93- var collectionName = "ExportTest4" ;
94- await CollectionFactory ( collectionName ) ;
90+ var collection = await CollectionFactory ( "ExportTest4" ) ;
9591
9692 await using var operation = await _weaviate . Export . Create (
9793 new ExportCreateRequest (
9894 $ "export-cancel-{ Guid . NewGuid ( ) : N} ",
9995 _backend ,
100- IncludeCollections : [ collectionName ]
96+ IncludeCollections : [ collection . Name ]
10197 ) ,
10298 ct
10399 ) ;
0 commit comments