Skip to content

Commit e03d3c9

Browse files
fix(audience-tests): replace Assert.DoesNotThrowAsync with await for Unity NUnit compat
Unity's com.unity.test-framework ships NUnit 3.5, which predates Assert.DoesNotThrowAsync. Awaiting the task achieves the same assertion semantic — NUnit fails the test if the awaited task throws. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 128504b commit e03d3c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Packages/Audience/Tests/Runtime/Transport/HttpTransportTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public async Task SendBatchAsync_ErrorCallbackThrows_DoesNotCrash()
460460
onError: _ => throw new InvalidOperationException("callback bug"),
461461
handler: handler);
462462

463-
Assert.DoesNotThrowAsync(() => transport.SendBatchAsync());
463+
await transport.SendBatchAsync();
464464
}
465465

466466
#if IMMUTABLE_AUDIENCE_GZIP

0 commit comments

Comments
 (0)