Add an optional parameter to XmlUtils.WriteNode to preserve specific namespaces #145
GitHub Actions / LibPalaso Tests
failed
Oct 31, 2024 in 0s
2 fail, 231 skipped, 4 596 pass in 12m 48s
Annotations
Check warning on line 0 in SIL.WritingSystems.Tests.SldrTests
github-actions / LibPalaso Tests
1 out of 3 runs failed: MoveTmpToCache_DraftApproved_RemovesUid (SIL.WritingSystems.Tests.SldrTests)
./test-results\results_net462_20241031214757.trx [took 0s]
Raw output
System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\runneradmin\AppData\Local\Temp\SldrCacheTest\en-e2ccb575.ldml'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at SIL.WritingSystems.Tests.SldrTests.MoveTmpToCache_DraftApproved_RemovesUid() in D:\a\libpalaso\libpalaso\SIL.WritingSystems.Tests\SldrTests.cs:line 385
Check warning on line 0 in SIL.Tests.Xml.XmlUtilsTests
github-actions / LibPalaso Tests
1 out of 3 runs failed: WriteNode_PreserveNamespacesArePreserved (SIL.Tests.Xml.XmlUtilsTests)
./test-results\results_net8.0_20241031215703.trx [took 0s]
Raw output
Expected string length 185 but was 189. Strings differ at index 82.
Expected: "...ext>\r\n\t\t<span\r\n\t\t\tclass="bold" xmlns:fw="https://fakefw.co..."
But was: "...ext>\r\n\t\t<span\r\n\t\t\tclass="bold"\r\n\t\t\txmlns:fw="https://fakef..."
-----------------------------------------------------^
at SIL.Tests.Xml.XmlUtilsTests.WriteNode_PreserveNamespacesArePreserved() in D:\a\libpalaso\libpalaso\SIL.Core.Tests\Xml\XmlUtilsTests.cs:line 207
1) at SIL.Tests.Xml.XmlUtilsTests.WriteNode_PreserveNamespacesArePreserved() in D:\a\libpalaso\libpalaso\SIL.Core.Tests\Xml\XmlUtilsTests.cs:line 207
Loading