Skip to content

test: re-enable Android LogEventTest - #2485

Open
Ganesh2325 wants to merge 1 commit into
appium:masterfrom
Ganesh2325:cursor/reenable-log-event-test-acdc
Open

Ganesh2325 wants to merge 1 commit into
appium:masterfrom
Ganesh2325:cursor/reenable-log-event-test-acdc

Conversation

@Ganesh2325

@Ganesh2325 Ganesh2325 commented Oct 29, 2026 •

Copy link
Copy Markdown

Part of #325

Change list

  • Fix LogEventTest.verifyLoggingCustomEvents: compare the event timestamp with longValue() instead of intValue().
  • Remove LogEventTest from the e2eAndroidTest exclude list in build.gradle.

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

Appium returns event timestamps as epoch milliseconds (e.g. 1793292090478). Read as a 32-bit int that becomes -2004239250, so the > 0 assertion failed even though the event was logged correctly.

Verified on an API 28 emulator (same as CI) with Appium 4.0.0-beta.6 and UiAutomator2 9.0.0-beta.2:
./gradlew :e2eAndroidTest --tests io.appium.java_client.android.LogEventTest passed on two clean runs; unit tests and checkstyle pass.

This change was AI-assisted; I reviewed and tested it myself.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Ganesh2325 / name: Ganesh (ce11e05)

Event timestamps are Unix epoch millis, so intValue() overflows and the
assertion fails even when the custom event was logged. Compare with
longValue() and stop excluding the class.

Part of appium#325
@cursor
cursor Bot force-pushed the cursor/reenable-log-event-test-acdc branch from 7754d2b to ce11e05 Compare October 30, 2026 09:16
@Ganesh2325

Copy link
Copy Markdown
Author

/easycla

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant