Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

tests: failure with copied session_spec #48

@blueyed

Description

@blueyed

I've noticed that this fails: cp -a test/session{,_new}_spec.lua; make test:

[----------] 24 tests from test/session_new_spec.lua (1645.26 ms total)

[----------] Running tests from test/session_spec.lua
./nvim/msgpack_rpc_stream.lua:1: attempt to index a userdata value

stack traceback:
        ./nvim/msgpack_rpc_stream.lua:1: in main chunk

[----------] 0 tests from test/session_spec.lua (2.01 ms total)

[----------] Global test environment teardown.
[==========] 24 tests from 2 test files ran. (1647.72 ms total)
[  PASSED  ] 24 tests.
[  ERROR   ] 1 error, listed below:
[  ERROR   ] ./nvim/msgpack_rpc_stream.lua @ 1: suite test/session_spec.lua

 1 ERROR
make: *** [Makefile:48: test] Error 1

I.e. when the same spec file is loaded again the local mpack = require('mpack') there fails:

local mpack = require('mpack')

It's not clear to me what's causing this - it might indicate some inconsistent global state?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions