Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestKeyboardPress panic involving Page.WaitForLoadState #1505

Open
1 of 2 tasks
inancgumus opened this issue Nov 4, 2024 · 0 comments
Open
1 of 2 tasks

TestKeyboardPress panic involving Page.WaitForLoadState #1505

inancgumus opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working tests

Comments

@inancgumus
Copy link
Member

inancgumus commented Nov 4, 2024

What?

Fix the TestKeyboardPress/control_or_meta panic.

--- FAIL: TestKeyboardPress (44.25s)
    --- FAIL: TestKeyboardPress/control_or_meta (7.30s)
        keyboard_test.go:141: 
                Error Trace:    /Users/inanc/grafana/k6browser/main/tests/keyboard_test.go:141
                Error:          Received unexpected error:
                                while waiting for []func() error: while running func() error: context deadline exceeded
                Test:           TestKeyboardPress/control_or_meta
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1041a2ab4]

goroutine 2659 [running]:
testing.tRunner.func1.2({0x104a18920, 0x1059ec5d0})
        /usr/local/go/src/testing/testing.go:1632 +0x2c4
testing.tRunner.func1()
        /usr/local/go/src/testing/testing.go:1635 +0x47c
panic({0x104a18920?, 0x1059ec5d0?})
        /usr/local/go/src/runtime/panic.go:785 +0x124
github.com/grafana/xk6-browser/common.(*Page).WaitForLoadState(0x0, {0x1045ba510, 0x4}, {0x0, 0x0})
        /Users/inanc/grafana/k6browser/main/common/page.go:1541 +0xa4
github.com/grafana/xk6-browser/tests.TestKeyboardPress.func4(0xc00043b1e0)
        /Users/inanc/grafana/k6browser/main/tests/keyboard_test.go:144 +0x614

Why?

  • Makes it difficult to run the tests consistently.
  • It might indicate an underlying issue within the module code.

How?

Module version: 1.9.1

Tasks

Tasks

  1. bug tests
    inancgumus

Related PR(s)/Issue(s)

@inancgumus inancgumus added the bug Something isn't working label Nov 4, 2024
@inancgumus inancgumus changed the title TestKeyboardPress panic TestKeyboardPress panic involving Page.WaitForLoadState Nov 4, 2024
@inancgumus inancgumus self-assigned this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

No branches or pull requests

1 participant