diff --git a/ShopifySharp.Tests/Asset_Tests.cs b/ShopifySharp.Tests/Asset_Tests.cs
index 4036d043..9f4621ed 100644
--- a/ShopifySharp.Tests/Asset_Tests.cs
+++ b/ShopifySharp.Tests/Asset_Tests.cs
@@ -3,7 +3,6 @@
using System.Linq;
using System.Net;
using System.Threading.Tasks;
-using ShopifySharp.Infrastructure;
using Xunit;
using Xunit.Abstractions;
@@ -40,12 +39,14 @@ public async Task Creates_Assets()
[Fact]
public async Task Updates_Assets()
{
- string key = "templates/update-test.liquid";
- string newValue = "
Hello, world! I've been updated!
";
+ var key = "snippets/update-test.liquid";
+ var newValue = "Hello, world! I've been updated!
";
var created = await Fixture.Create(key);
created.Value = newValue;
await Fixture.Service.CreateOrUpdateAsync(Fixture.ThemeId, created);
+ // In 2024-07, there seems to be a small delay between when an asset is updated and when the new value is available
+ await Task.Delay(TimeSpan.FromSeconds(2));
// Value is not returned when creating or updating. Must get the asset to check it.
var updated = await Fixture.Service.GetAsync(Fixture.ThemeId, key);