Skip to content

Commit

Permalink
Fix NewSession unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chemamartinez committed Feb 7, 2024
1 parent d595840 commit 3c45c08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/libbeat/reader/etw/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ func TestNewSession_GUIDError(t *testing.T) {
}
session, err := NewSession(conf)

assert.EqualError(t, err, "mock error")
expectedSession := Session{}
assert.Equal(t, expectedSession, session, "Session should be its zero value when an error occurs")
assert.EqualError(t, err, "error when initializing session 'Session1': mock error")
assert.Nil(t, session)

}

Expand Down

0 comments on commit 3c45c08

Please sign in to comment.