Skip to content

Commit 65a1367

Browse files
committed
Update tests with new exception message
1 parent 8054e0b commit 65a1367

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

YamlDotNet.Test/Serialization/MergingParserTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ await Task.Run(() =>
199199
//move through everything, we're in a timebox so if this takes too long, the cancellation token will trigger and fail the test
200200
}
201201
}
202-
catch (YamlException ex) when (ex.Message.Contains("Too many events"))
202+
catch (YamlException ex) when (ex.Message.Contains("Too many parsing events"))
203203
{
204204
// Expected exception, test passes
205205
return;
@@ -251,7 +251,7 @@ await Task.Run(() =>
251251
};
252252

253253
parse.Should().Throw<YamlException>()
254-
.Where(ex => ex.Message.Contains("Too many events"));
254+
.Where(ex => ex.Message.Contains("Too many parsing events"));
255255
}, cancellationTokenSource.Token);
256256
}
257257

0 commit comments

Comments
 (0)