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

tests: failure with copied session_spec #48

Open
blueyed opened this issue Nov 29, 2019 · 0 comments
Open

tests: failure with copied session_spec #48

blueyed opened this issue Nov 29, 2019 · 0 comments
Labels

Comments

@blueyed
Copy link
Contributor

blueyed commented Nov 29, 2019

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?

@blueyed blueyed added the bug label Nov 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant