pravega / pravega-client-rust

Rust based Pravega client.
Apache License 2.0
31 stars 25 forks source link

Flakey nodejs tests #436

Open tkaitchuck opened 1 year ago

tkaitchuck commented 1 year ago

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