Skip to content

Commit 697c548

Browse files
committed
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
1 parent 4834b4a commit 697c548

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/test/src/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ async fn test_yaml_parsing(api_version: Version, gas_used: u64) {
17891789
test("{a: 1, - b: 2}", "error").await;
17901790

17911791
// Test size limit;
1792-
test(&"x".repeat(10_000_0001), "error").await;
1792+
test(&"x".repeat(10_000_001), "error").await;
17931793

17941794
// Test nulls;
17951795
test("null", "(0) null").await;
@@ -1829,10 +1829,10 @@ async fn test_yaml_parsing(api_version: Version, gas_used: u64) {
18291829

18301830
#[graph::test]
18311831
async fn yaml_parsing_v0_0_4() {
1832-
test_yaml_parsing(API_VERSION_0_0_4, 10462217077171).await;
1832+
test_yaml_parsing(API_VERSION_0_0_4, 1053927678771).await;
18331833
}
18341834

18351835
#[graph::test]
18361836
async fn yaml_parsing_v0_0_5() {
1837-
test_yaml_parsing(API_VERSION_0_0_5, 10462245390665).await;
1837+
test_yaml_parsing(API_VERSION_0_0_5, 1053955992265).await;
18381838
}

0 commit comments

Comments
 (0)