Skip to content

Commit

Permalink
Improve test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
olsh committed Dec 20, 2021
1 parent 319380b commit 56ddc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Todoist.Net.Tests/Services/ItemsServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ public void MoveItemsToProject_Success()
Assert.True(project.Id != itemInfo.Project.Id);

client.Items.MoveAsync(ItemMoveArgument.CreateMoveToProject(itemInfo.Item.Id, project.Id)).Wait();
itemInfo = client.Items.GetAsync(item.Id).Result;
itemInfo = client.Items.GetAsync(itemInfo.Item.Id).Result;

Assert.True(project.Id == itemInfo.Project.Id);

client.Projects.DeleteAsync(project.Id).Wait();
client.Items.DeleteAsync(item.Id).Wait();
client.Items.DeleteAsync(itemInfo.Item.Id).Wait();
}

[Fact]
Expand Down

0 comments on commit 56ddc23

Please sign in to comment.