Tests failed in Ubuntu 16.04 LTS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 132
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
Running `npm test` in the module in Ubuntu 16.04 LTS x64 is not passing any of the tests, :-1:
```
> loudness@0.2.2 test /.../node-loudness
> mocha
loudness
1) should set and get the volume
2) should set and get the mute state
3) "after all" hook
0 passing (96ms)
3 failing
1) loudness should set and get the volume:
Uncaught AssertionError: 16 == 15
+ expected - actual
-16
+15
at test/basics.js:47:16
at impl/linux.js:76:7
at impl/linux.js:60:13
at ChildProcess. (impl/linux.js:19:5)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
2) loudness should set and get the mute state:
Uncaught Error: Alsa Mixer Error: amixer: Invalid command!
at Socket. (impl/linux.js:15:11)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at Pipe.onread (net.js:548:20)
3) loudness "after all" hook:
Error: Alsa Mixer Error: amixer: Invalid command!
at Socket. (impl/linux.js:15:11)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at Pipe.onread (net.js:548:20)
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with npm test on Ubuntu 16.04 LTS x64, then inspect test/basics.js and the Linux implementation at impl/linux.js, including the amixer errors shown in the trace. Done means the volume and mute tests pass and the after-all hook completes without an ALSA Mixer Error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100