Skip to content

Commit fc7728a

Browse files
committed
Fix Invoke_ExceptionThrown_DetailsLogged test
1 parent d49f90b commit fc7728a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/WebJobs.Script.Tests.Integration/ScriptHostEndToEnd/DirectLoadEndToEndTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ public async Task Invoke_ExceptionThrown_DetailsLogged()
8787
Assert.Equal(2, errorLogs.Length);
8888

8989
// first log is the result
90-
Assert.Equal(LogCategories.Results, errorLogs[0].Category);
90+
Assert.Equal(LogCategories.Results, errorLogs[1].Category);
9191

92-
var error = errorLogs[1];
92+
var error = errorLogs[0];
9393
var invocationException = (FunctionInvocationException)error.Exception;
9494
Assert.Equal("Exception while executing function: Function1", invocationException.Message);
9595
Assert.Equal("TestFunctions.Function1.Run", invocationException.MethodName);

0 commit comments

Comments
 (0)