Skip to content

Commit

Permalink
Fix test for win2016
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gr committed Jan 15, 2025
1 parent 04a8a25 commit 0132c2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions winlogbeat/tests/system/test_wineventlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ def test_read_unknown_event_id(self):
"winlog.keywords": ["Classic"],
})

self.assertEqual(
"failed to get the event message string: failed in EvtFormatMessage:"
" The message resource is present but the message was not found in the message table.",
evts[0]["error.message"]
# we just check the prefix since the specific message changes depending on the windows version
self.assertTrue(
evts[0]["error.message"].startsWith("failed to get the event message string: failed in EvtFormatMessage:")
)

def test_read_unknown_sid(self):
Expand Down

0 comments on commit 0132c2b

Please sign in to comment.