Skip to content

Commit 5f83837

Browse files
committed
Fix tests that create duplicate parts-of-speech
1 parent 76f5a25 commit 5f83837

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

backend/FwLite/FwLiteProjectSync.Tests/SyncTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ public async Task DisposeAsync()
6464
{
6565
await _fixture.CrdtApi.DeleteEntry(entry.Id);
6666
}
67+
await foreach (var pos in _fixture.FwDataApi.GetPartsOfSpeech())
68+
{
69+
await _fixture.FwDataApi.DeletePartOfSpeech(pos.Id);
70+
}
71+
foreach (var pos in await _fixture.CrdtApi.GetPartsOfSpeech().ToArrayAsync())
72+
{
73+
await _fixture.CrdtApi.DeletePartOfSpeech(pos.Id);
74+
}
6775
}
6876

6977
public SyncTests(SyncFixture fixture)

0 commit comments

Comments
 (0)