Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 23, 2024
1 parent 4318acc commit 54945b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Functional/StreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public function testDeduplication()
->setSubjects(['tester'])
->setDuplicateWindow(0.5); // 500ms windows duplicate

$stream->create();
$stream->createIfNotExists();
$stream->createIfNotExists(); // should not provide an error

// windows value using nanoseconds
$this->assertEquals(0.5 * 1_000_000_000, $stream->info()->getValue('config.duplicate_window'));
Expand Down Expand Up @@ -285,6 +286,7 @@ public function testNoMessages()
$this->empty = true;
});

$this->assertSame($consumer->getDelay(), 0);
$this->assertFalse($this->called);
$this->assertTrue($this->empty);
}
Expand Down

0 comments on commit 54945b7

Please sign in to comment.