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

Flakey nodejs tests #436

Open
tkaitchuck opened this issue May 25, 2023 · 0 comments
Open

Flakey nodejs tests #436

tkaitchuck opened this issue May 25, 2023 · 0 comments
Labels
bug Something isn't working build

Comments

@tkaitchuck
Copy link
Member

FAIL tests/client.test.ts
● Basic test on manager, reader, and writer › main

assert.strictEqual(received, expected)

Expected value to strictly be equal to:
  6
Received:
  4

Message:
  expected 4 to equal 6

  65 |         const dec = new TextDecoder('utf-8');
  66 |         const events = [...seg_slice].map(event => dec.decode(event.data()));
> 67 |         assert.equal(events.length, 6);
     |                ^
  68 |         events.map(event => assert.equal(event, DATA));
  69 |         // for (const event of seg_slice) {
  70 |         //     const raw_value = event.data();

  at Object.<anonymous> (tests/client.test.ts:67:16)

FAIL tests/stream_manager.test.ts
● Tests on StreamManager › Create and delete scope and streams

assert.strictEqual(received, expected)

Expected value to strictly be equal to:
  true
Received:
  false

Message:
  expected false to equal true

  23 |
  24 |         // create scope and stream
> 25 |         assert.equal(stream_manager.create_scope('scope1'), true);
     |                ^
  26 |         assert.equal(
  27 |             stream_manager.create_stream(
  28 |                 'scope1',

  at Object.<anonymous> (tests/stream_manager.test.ts:25:16)

● Tests on StreamManager › Add tags

assert.strictEqual(received, expected)

Expected value to strictly be equal to:
  true
Received:
  false

Message:
  expected false to equal true

  56 |     it('Add tags', async () => {
  57 |         const stream_manager = StreamManager('tcp://127.0.0.1:9090', false, false, true);
> 58 |         assert.equal(stream_manager.create_scope('scope1'), true);
     |                ^
  59 |         assert.equal(stream_manager.create_stream('scope1', 'stream2withoutpolicy'), true);
  60 |
  61 |         // update stream with tags and get tags

  at Object.<anonymous> (tests/stream_manager.test.ts:58:16)

Test Suites: 2 failed, 2 passed, 4 total
Tests: 3 failed, 6 passed, 9 total
Snapshots: 0 total
Time: 12.098 s
Ran all test suites.
Error: Process completed with exit code 1.
##[debug]Finishing: Test

@tkaitchuck tkaitchuck added bug Something isn't working build labels May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build
Projects
None yet
Development

No branches or pull requests

1 participant