From ab2bb6573ea24750a6c41638bcf4ab091bb04491 Mon Sep 17 00:00:00 2001 From: David Lutterkort Date: Fri, 9 Jan 2026 14:44:57 -0800 Subject: [PATCH] runtime: Fix YAML parsing test and make it faster A typo in the test made it use a string that was 10x larger than it needed to be. The test now takes 7s instead of 20s --- runtime/test/src/test.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/test/src/test.rs b/runtime/test/src/test.rs index f8ee8c38116..44ca7f53f02 100644 --- a/runtime/test/src/test.rs +++ b/runtime/test/src/test.rs @@ -1789,7 +1789,7 @@ async fn test_yaml_parsing(api_version: Version, gas_used: u64) { test("{a: 1, - b: 2}", "error").await; // Test size limit; - test(&"x".repeat(10_000_0001), "error").await; + test(&"x".repeat(10_000_001), "error").await; // Test nulls; test("null", "(0) null").await; @@ -1829,10 +1829,10 @@ async fn test_yaml_parsing(api_version: Version, gas_used: u64) { #[graph::test] async fn yaml_parsing_v0_0_4() { - test_yaml_parsing(API_VERSION_0_0_4, 10462217077171).await; + test_yaml_parsing(API_VERSION_0_0_4, 1053927678771).await; } #[graph::test] async fn yaml_parsing_v0_0_5() { - test_yaml_parsing(API_VERSION_0_0_5, 10462245390665).await; + test_yaml_parsing(API_VERSION_0_0_5, 1053955992265).await; }