Closed
Description
What happened:
[xUnit.net 00:00:01.71] ServerlessWorkflow.Sdk.UnitTests.Cases.IO.WorkflowReaderTests.Read_Yaml_ShouldWork [FAIL]
Failed ServerlessWorkflow.Sdk.UnitTests.Cases.IO.WorkflowReaderTests.Read_Json_ShouldWork [15 ms]
Error Message:
System.IO.DirectoryNotFoundException : Could not find a part of the path '/home/elan/repos/ElanHasson/sdk-net/tests/ServerlessWorkflow.Sdk.UnitTests/bin/Debug/net7.0/Resources/Workflows/operation.json'.
Stack Trace:
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Func`4 createOpenException)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Func`4 createOpenException)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.ReadAllText(String path, Encoding encoding)
at ServerlessWorkflow.Sdk.UnitTests.Cases.IO.WorkflowReaderTests.Read_Json_ShouldWork() in /home/elan/repos/ElanHasson/sdk-net/tests/ServerlessWorkflow.Sdk.UnitTests/Cases/IO/WorkflowReaderTests.cs:line 57
--- End of stack trace from previous location ---
What you expected to happen:
Test should run.
How to reproduce it:
Run in WSL and dotnet test
from repo root.
Anything else we need to know?:
Environment: Linux
Metadata
Metadata
Assignees
Labels
No labels